HTML Cars Report
✓ Published1🌍 Public
This example demonstrates how to build an HTML-based report using ES6 modules with D3 v5 and VizHub. A static array of car objects is loaded asynchronously through a Promise, filtered by price, and formatted into text using `formatCar` and `generateReport` functions. The report renders in a `pre` element, displaying only cars below a price threshold, while the page also includes hardcoded list items with CSS highlighting. The code imports D3 via UNPKG and uses local module imports like `./getCars` and `./generateReport`.
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