Skip to main content
100%

D3 tutorial

✓ Published0🌍 Public
EEDPnajmi
Last edited Mar 11, 2022
Created on Mar 11, 2022
Forked from Hello VizHub

This example demonstrates how to set up a minimal D3.js visualization within VizHub, using ECMAScript modules for code organization. It loads D3 v5 from UNPKG and displays a static text message, “Hello VizHub!”, centered in the browser via the `select` API and the `#message` div. The code imports `select` from D3 and a local `message` string from an ES6 module, then applies the text with D3’s selection method. Styling is handled through an external CSS file, showing a basic integration of local assets with a CDN-loaded library.

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.
MIT Licensed

Similar vizzes