Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

5ce6edf6c7db4e54a5c7db38f2d6e1d8

Fork of Hello VizHub

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