Cars Report
✓ Published0🌍 Public
This example demonstrates a simple text-based report of car listings, filtering a hardcoded JSON dataset to display only vehicles priced under $10,000. The visualization shows a formatted list of cars, with each line presenting the year, make, model, and price derived from the local `getCars` module. The code relies on JavaScript ES6 modules, using `import` statements to load D3 via UNPKG and custom functions like `formatCar` and `generateReport`. The final output is rendered as plain text inside a `<pre>` element, demonstrating VizHub’s ability to orchestrate asynchronous data loading and string manipulation without graphical charts.
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