Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed