🌍 Public
Viewing a saved revision (read-only)
c2a2514a6e484cea9543c5e072d933ff
Cars Report
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.