Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
KKinjal-Goyani
Last edited Oct 20, 2022
Created on Oct 20, 2022
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 load D3 v5 from a CDN and use ES6 module imports for both external libraries and local JavaScript files. The code uses `d3.select` to target the `#message` div and sets its text content from an exported constant in a separate module. Styling is applied via CSS, centering the text and enlarging the font size dramatically.

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