Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

1ad7e80e274344dcbf69e10e1d44de14

Fork of Hello VizHub

0 stars0🌍 Public
JJ. Hunter Priniski
Last edited Mar 8, 2021
Created on Mar 8, 2021
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup that renders a static text message in the browser. It shows how to load D3 v5 from a CDN, import the `select` function from the `d3` module, and import a local ES6 module. The code uses `select('#message').text(message)` to insert the text "Hello VizHub!" into the page, while a CSS rule centers it with a large font size.

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.