Skip to main content
100%

colors

✓ Published0🌍 Public
8888Midas888
Last edited Oct 31, 2022
Created on Oct 31, 2022
Forked from Hello VizHub

This example demonstrates how to load D3 as an ES6 module and combine it with a local module, showing the core capabilities of the VizHub environment. The visualization imports the `select` function from D3 via UNPKG and imports a custom `message` string from a local `myMessage` module. The single line of code then uses `select` to set the text content of a `div` with the ID `message`, rendering the imported message on the page. The rendering approach is direct DOM manipulation through D3's selection API.

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