Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
MMonaYuan
Last edited Dec 23, 2021
Created on Dec 23, 2021
Forked from Hello VizHub

This example demonstrates how to load D3 from a CDN and use ES6 module imports to build a minimal visualization. It renders a single div element that displays the text “Hello VizHub!” in large, centered type via the accompanying stylesheet. The code imports the `select` function from D3 v5 and a local `message` constant from an ES6 module, then uses `select('#message').text(message)` to populate the page. This serves as a simple template for combining D3 with modular JavaScript in a VizHub project.

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