🌍 Public
Viewing a saved revision (read-only)
4836ece39cb74fde8b5b8a3ae7f91f3b
Cars Report
This example displays a single data point—the year of the first car in a hardcoded array—as large text on a web page. It loads D3 via UNPKG and demonstrates importing a local ES6 module, `cars.js`, which exports an array of car objects containing year, make, model, and price. The `index.js` file accesses `cars[0].year` and sets the text content of an HTML `<pre>` element with the ID `m` using the DOM API. The visualization uses no charts or D3 visualization methods; it simply renders a text output from the imported data.
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.