Skip to main content
100%

Cars Report

✓ Published0🌍 Public
MMartin Casey
Last edited Feb 11, 2021
Created on Feb 11, 2021
Forked from Hello VizHub

This example displays the make of the first car in a hardcoded JSON dataset as a large text message on a web page. The data, defined in a local `cars.js` ES6 module, contains three car records with year, make, and price fields. The visualization imports this data using the `import` statement and uses standard JavaScript DOM manipulation to set the text content of the `#message-element` HTML element. The page loads D3 version 5 from a CDN, though the visible code does not call any D3 functions.

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