Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork Hello VizHub

Public visualization

Viewing a saved revision (read-only)

48f953ff97e54faf8668721d4b32ca70

Fork Hello VizHub

0 stars0🌍 Public
HHLgorithm
Last edited May 17, 2023
Created on May 17, 2023
Forked from Hello VizHub

This example demonstrates how to set up a minimal VizHub visualization using D3 v5 and ES6 modules. It loads D3 from UNPKG and imports the `select` function to target a DOM element, while a local module exports a custom message string. The code renders the text " VizHub!" inside a styled div, with CSS centered and enlarged via the `#message` selector. It illustrates basic module imports, CDN library loading, and D3’s selection API for updating page content.

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.