Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Hello VizHub

Public visualization

Viewing a saved revision (read-only)

38413a6fb53743c3bf2a62fbbe4fb172

Fork of Hello VizHub

0 stars0🌍 Public
Ssaivaishnogaruda@gmail.com
Last edited Nov 1, 2024
Created on Nov 1, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” centered on the page. It shows how to import the `select` function from the D3 library via ES6 modules and load D3 v5 from a CDN. The code also includes a local module, `myMessage.js`, which exports the displayed message, and uses CSS to style the text with a large font size. The rendering approach relies on D3’s selection API to update the DOM.

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.