Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub NRA

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed