Cars Report
✓ Published0🌍 Public
This example demonstrates a data-reporting workflow by fetching a JSON array of car records and generating a formatted text report. The page first displays "Loading..." while a simulated two-second asynchronous delay resolves the data via a Promise from `getCars`. The `generateReport` function filters cars by a maximum price and formats each matching entry using `formatCar`, which outputs year, make, model, and price. The final plain-text report is rendered inside an HTML `<pre>` element. The code relies on ES6 modules and native Promise syntax rather than external visualization libraries.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed