Skip to main content
100%

wejdan

✓ Published0🌍 Public
Jjody-otbi
Last edited May 23, 2022
Created on May 23, 2022
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, displaying the text “Hello VizHub!” in a large, centered message. The code loads D3 v5 from an external CDN via UNPKG and uses the `select` API to target the `#message` div, setting its text content. It also imports a local ES6 module, `myMessage.js`, to supply the string, showcasing how to combine external libraries with modular local code. The styling is handled through a linked CSS file that defines the text alignment and font size.

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