Cars Report
✓ Published0🌍 Public
This example displays the year of the first car in a small imported dataset as a large, centered text message. It demonstrates basic D3.js loading via UNPKG and the use of local ES6 modules, specifically importing the `cars` array from a separate `Cars.js` file. The page’s `#message` div receives its text content from `cars[0].year` and is styled using the `text-align` and `font-size` CSS properties in `styles.css`. The visualization relies on DOM manipulation via `document.getElementById` rather than any D3 drawing or layout API.
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