Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
XXingyuzxy
Last edited Oct 12, 2021
Created on Oct 12, 2021
Forked from Hello VizHub

This example demonstrates how to set up a minimal D3.js visualization within VizHub, using an ES6 module imported from a local file. It shows a single text element displaying “Hello VizHub!” centered on the page. The code uses `d3.select` to target the `#message` div and sets its text content via the `message` variable exported from `myMessage.js`. D3 is loaded from a CDN via UNPKG, and the example highlights the import syntax for both the D3 library and local modules.

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