D3 tutorial
✓ Published0🌍 Public
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 descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed