🌍 Public
Viewing a saved revision (read-only)
8abac91ec1e249ae8dd1190e145a8b6e
Cars Reports
This example demonstrates how to export and import data from local ES6 modules in a VizHub project, displaying a static message on the page. It uses D3 loaded via UNPKG, though the visible code does not employ any D3 methods—only the import syntax is shown. The app imports an array of car objects from `cars.js` and a string from `myMessage.js`, but the `index.js` file leaves both the imported data and message unused, with placeholder text. The HTML contains a single `<pre>` element whose content is updated via the DOM API, styled by `styles.css`. The dataset includes five car records with year, make, model, and price fields.
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.