Cars Reports
✓ Published1🌍 Public
This example displays the name of the first car in a static JSON dataset, rendered as a large text message in a web page. The data is defined in a local ES6 module (`cars.js`) using a JSON string that is parsed into an array, and the entry point `index.js` imports it to update a DOM element’s text content. The visualization uses no D3 or external libraries—only plain JavaScript with `document.getElementById` to manipulate the HTML, styled by `styles.css` for centered, large typography. It demonstrates basic module imports and DOM scripting within a VizHub project.
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