Cars Report
✓ Published0🌍 Public
This example generates a text-based report of cars from a hardcoded JSON dataset, filtering entries by price and formatting each result as a single line of text. The visualization displays the filtered car descriptions in a large `<pre>` element. The code uses D3 v5 loaded via UNPKG for potential data handling, though the main logic relies on custom ES6 modules: `cars.js` parses the JSON, `formatCar` formats each car entry, and `generateReport` filters and maps the data to strings. The final output is injected into the DOM using `document.getElementById().textContent`.
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