Cars Report
✓ Published0🌍 Public
This example shows a minimal web page that renders the text “hello world” in large type, demonstrating how to load D3 and local ES6 modules in VizHub. The page uses an HTML `<pre>` element as the output target and updates its content via `document.getElementById` in the main script, which imports from `cars.js` and `myMessage.js`. The data file includes a small JSON array of car objects parsed with `JSON.parse`. The code relies on a bundled script generated by Rollup, with styling defined in `styles.css`.
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