Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Viewing a saved revision (read-only)

9be42eb8161f497ba4916f2666b8e3a2

Untitled

0 stars0🌍 Public
SSinasirousnejad
Last edited Nov 28, 2022
Created on Nov 28, 2022
Forked from Hello VizHub

This example demonstrates VizHub’s ability to load D3 via UNPKG and use ES6 modules locally. It imports the `select` function from D3 and a custom `message` constant from `./myMessage`, then sets the text of a `#message` div to display “Hello VizHub!”. The page is styled with centered, large text via `styles.css`, while the HTML shell loads a bundled script. It serves as a minimal template for combining external libraries with modular JavaScript in a VizHub 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.