Cars Report
✓ Published0🌍 Public
This example demonstrates a simple text-based report of car listings, filtering entries by price and formatting each match into a readable line. It shows how VizHub projects can load D3 via UNPKG and use ES6 module imports to organize code. The data is embedded as JSON and fetched asynchronously with a custom `getCars()` promise, while `generateReport()` applies a price filter and `formatCar` transforms each car object into a string. The output is displayed in a `<pre>` element, with a loading message shown until the data arrives.
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