Cars report
✓ Published0🌍 Public
This example displays the name of the first car model from an embedded JSON dataset in large text on a web page. The data, defined in cars.js as an array of car objects with year, make, model, and price, is imported via an ES6 module. The code uses `JSON.parse` to convert the inline JSON string and `document.getElementById` to update the page’s content, with styling applied through a `pre` element and external CSS. It demonstrates basic D3-free data handling and modular JavaScript imports 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