Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

765ab71fe95745269c1404caeb25f399

Fork of Hello VizHub

0 stars0🌍 Public
YYU
Last edited Sep 25, 2022
Created on Sep 25, 2022
Forked from Hello VizHub

This example demonstrates a minimal D3.js visualization that displays the text "Hello VizHub!" in the center of the page. It shows how an HTML page can load D3 from a CDN and use ES6 modules to structure code. The `index.js` file imports the `select` function from D3 and the `message` constant from a local `myMessage.js` module, then uses `select('#message').text()` to update the DOM. Styling is applied through an external CSS file, and three files—HTML, JavaScript, and CSS—work together as a basic template.

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.