Cars Report
✓ Published0🌍 Public
This example renders a text-based report of used cars, showing the power of VizHub to load D3 from UNPKG and modularize code with ES6 `import` statements. It displays a list of cars under a $2000 price threshold, with each entry formatted as "year make model: price." The code relies on a local `generateReport` module that filters and formats the data, a `getCars` module that parses embedded JSON and returns a Promise with a simulated 2-second delay, and an `index.html` with a `<pre>` element updated via the DOM API.
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