🌍 Public
Viewing a saved revision (read-only)
5578ded5d258477cb48a9717e4239172
An example from DataViz course - Cars Report
This example demonstrates a simple car report viewer that loads a hardcoded JSON dataset of five cars and displays those priced under $2,000 as a bulleted list. The page first shows a “Loading…” message, then uses a promise with a simulated two-second delay via `getCars` to fetch the data. The `generateReport` function filters and formats each car into a string with year, make, model, and price, which is injected into the DOM via `textContent`. The styling uses a dark blue background with large Ubuntu font, but no charting or visualization libraries are involved.
AI-generated descriptionAn example showing the capabilities of VizHub.