🌍 Public
Viewing a saved revision (read-only)
3e8db0d075544f58a4db54195e031271
Cars report
This example displays a text-based report of cars filtered by a maximum price. It shows a list of car models, their year, make, and price, generated from a hardcoded JSON array. The code uses D3.js v5, though primarily for versioning, with the core logic relying on JavaScript’s `filter`, `map`, and `join` methods. The `generateReport` function filters the data, formats each entry using `formatCar`, and displays the result in a styled HTML page with a dark background and white text.
AI-generated descriptionAn example showing the capabilities of VizHub.