Cars Report
✓ Published0🌍 Public
This example demonstrates how to generate a text-based report of cars under a specified price threshold. The page displays a list of car details, including year, make, model, and price, after a simulated two-second data loading delay. The implementation uses JavaScript promises in the custom function `getCars` to fetch mock car data, then filters and formats it with `generatereport` and `formatCar` ES6 modules. The report is rendered into a plain text element via `document.getElementById`, showcasing asynchronous data handling without any external libraries.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed