Skip to main content
100%

Fisrt JS program

✓ Published0🌍 Public
Ssimon-onebright
Last edited Dec 26, 2021
Created on Dec 26, 2021
Forked from Hello VizHub

This example displays a single car brand name, "shangqi," centered on the page. It demonstrates loading D3 v5 via UNPKG, and using ES6 `import` statements for both the D3 library and a local module. The local module, `myMessage.js`, parses a hardcoded JSON array of car objects, and the main script extracts and displays the brand from the first object. The styling is handled with a CSS file that sets large, centered text.

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