Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of loading data

Public visualization

Viewing a saved revision (read-only)

c5e2d81a55744cac989abbc22db9afd0

Fork of loading data

0 stars0🌍 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.