Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity6

Public visualization

Viewing a saved revision (read-only)

b8f0a31731f04b7690cc62e2340c0561

Activity6

0 stars1🌍 Public
DDeekshitha Annreddy
Last edited Oct 22, 2024
Created on Oct 22, 2024

This example demonstrates basic D3.js setup and ES6 module usage within a VizHub template. It loads D3 v5 from UNPKG and uses the `select` function from the `"d3"` import to update the text content of a `#message` div with a string exported from a local module. The page renders a large, centered “Hello VizHub!” message styled via CSS, showing how to combine external libraries, local imports, and styles in a single visualization harness.

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.