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