Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

d3-course001-hello-vizhub

Public visualization

d3-course001-hello-vizhub

0 stars0🌍 Public
SShad Frigui
Last edited Feb 10, 2024
Created on Feb 10, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” in the center of the page. It loads D3 v7 via UNPKG and uses the `select` method to target a `div` by its ID. The code also imports a local ES6 module (`my-message.js`) to source the displayed string, highlighting how to combine CDN-hosted libraries with modular JavaScript. Styling is applied through an external CSS file.

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