🌍 Public
Viewing a saved revision (read-only)
a238052f75e24b61b0c7c181aad1a8ac
Car Report
This example demonstrates a simple report generator for used cars, showing a filtered list of vehicles priced below a threshold. Using the D3 data-join pattern (though no D3 is imported), it parses hardcoded JSON car data via `JSON.parse` and applies a custom `generateReport` function that filters by price and formats each entry with the `formatCar` helper. The resulting text is injected into the page through `document.getElementById`, while basic CSS styles handle font size and color for static list items.
AI-generated descriptionAn example showing the capabilities of VizHub.