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