Car Reports
✓ Published0🌍 Public
This example demonstrates a simple text-based report of cars, filtering a hardcoded JSON dataset by price. It uses a Promise-based `getCars` function to simulate a 2-second loading delay, while the `generateReport` module filters cars under $2,000 and formats each entry with `formatCar`. The `index.js` script updates a `<pre>` element’s textContent, showing the list of affordable vehicles. The code relies on D3’s `d3.min.js` bundle for DOM manipulation, though the visualization is purely textual, not graphical.
AI-generated descriptionAn example showing the capabilities of VizHub.
MIT Licensed