Skip to main content
100%

Fork of loading data

✓ Published0🌍 Public
Nnexus1058
Last edited Jan 23, 2021
Created on Jan 23, 2021
Forked from loading data

This example demonstrates how VizHub projects can load external libraries and organize code into reusable modules. It loads D3 v5 from UNPKG and uses the `select` function to target a `div#message` element, setting its text content from a locally imported ES6 module. The `myMessage.js` file exports a simple string, while `styles.css` centers the text in a twelve-em font size. The result is a minimal hello-world that shows D3’s import syntax and local module architecture.

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