Cars Report
✓ Published0🌍 Public
This example generates a text-based report of cars filtered by price. It imports a static JSON dataset of four cars and applies a custom `generateReport` function to select vehicles under a maximum price, formatting each with the `formatCar` helper as “year make model: $price”. The resulting multi-line string is displayed in an HTML `<pre>` element using vanilla JavaScript via `document.getElementById().textContent`. The project relies on ES module imports and exports, with Rollup bundling the source files.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed