Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Ffrozengem397
Last edited Jan 14, 2021
Created on Jan 14, 2021
Forked from Hello VizHub

This example demonstrates how VizHub projects can load D3 and organize code with local ES6 modules. It uses D3’s `select` function to target a `div` with the id `message` and set its text content to a string imported from a separate module. The imported `message` constant is defined in `myMessage.js`. The page includes D3 v5 via UNPKG, and the stylesheet centers the message with a large font size.

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