Skip to main content
100%

Cars Report

✓ Published0🌍 Public
Cchelsea-chenxi1999
Last edited Jan 24, 2021
Created on Jan 24, 2021
Forked from Hello VizHub

This example displays a single data point—the year of the first car in a hardcoded array—as large text on a web page. It loads D3 via UNPKG and demonstrates importing a local ES6 module, `cars.js`, which exports an array of car objects containing year, make, model, and price. The `index.js` file accesses `cars[0].year` and sets the text content of an HTML `<pre>` element with the ID `m` using the DOM API. The visualization uses no charts or D3 visualization methods; it simply renders a text output from the imported data.

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