Cars Report
✓ Published0🌍 Public
This example presents a text-based report of car listings, filtering and formatting a small dataset of three vehicles. It demonstrates modular ES6 JavaScript code organization, with separate files for data, formatting, and report generation. The visualization uses D3 v5 loaded via UNPKG, though the core logic relies on native array methods like `filter` and `map` rather than D3-specific APIs. The `generateReport` function filters cars by price and joins formatted strings into a single message displayed in a `<pre>` element, showcasing how to combine local modules with a CDN-loaded library.
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