Skip to main content
100%

Cars Reports

✓ Published0🌍 Public
Bbrad1024
Last edited Sep 20, 2022
Created on Sep 12, 2022
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes