Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub NRA

Public visualization

Viewing a saved revision (read-only)

9e8d6428ee2441fc974d1af7e930ab95

Fork of Hello VizHub NRA

0 stars0🌍 Public
Xxconix
Last edited Jan 7, 2022
Created on Jan 7, 2022
Forked from Hello VizHub

This example demonstrates how to load D3 via UNPKG and use ES6 modules in VizHub. The page displays the text "Hello VizHub!" centered on a white background using the `select` function from `d3` to set the text content of the message div. It imports a local string constant from `myMessage.js` and applies styling from an external CSS file. The code shows a minimal setup for combining D3 with modular JavaScript in a browser environment.

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.