Skip to main content
100%

Activity 6

✓ Published0🌍 Public
CCodeNinja
Last edited Oct 18, 2024
Created on Oct 18, 2024
Forked from Hello VizHub

This example renders a static “Hello VizHub!” message to the center of the page using D3 v5. The code imports the `select` function from the D3 library and a local ES6 module called `myMessage.js` to retrieve the string. It then sets the text content of the `#message` div via `select('#message').text(message)`, while CSS applies 12em centered styling. The page loads D3 from a CDN in `index.html` and uses a bundled script for execution.

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