Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Viewing a saved revision (read-only)

11e3b4515519442788f5064151f0668b

Untitled

0 stars0🌍 Public
Ppengming0807
Last edited Oct 14, 2021
Created on Oct 14, 2021
Forked from Hello VizHub

This example demonstrates how to load D3.js via UNPKG and use ES6 modules from both external and local sources. The code imports the `select` function from D3 and applies a locally imported message string to the text of a `#message` div. The message, defined in `myMessage.js`, is displayed centered at a large font size through `styles.css`. It serves as a minimal template for combining D3 imports, local modules, and styling in VizHub.

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.