Skip to main content
100%

Hello VizHub

✓ Published0🌍 Public
AAlex(Zhirui) Yang
Last edited Dec 21, 2021
Created on Dec 21, 2021
Forked from Hello VizHub

This example demonstrates a minimal D3.js visualization that renders a static message, “Hello VizHub!”, into a DOM element. It loads D3 v5 via UNPKG and uses the `select` function from the `d3` import to set the text content of a `div` with the ID `message`. The text originates from a local ES6 module, `myMessage.js`, which exports the string. Styling is applied through an external CSS file, centering the text at a large red font size. The example showcases modular imports and basic DOM manipulation with D3.

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