Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Mmlend
Last edited Jul 20, 2021
Created on Jul 20, 2021
Forked from Hello VizHub

This example demonstrates how to build a minimal D3.js visualization using ES6 modules within the VizHub environment. It shows a simple text message, “Hello VizHub!”, displayed in the center of the page via the `select('#message').text()` API. The code imports D3 functions like `select` from the CDN-loaded `d3.v5` library, and also imports a local `message` constant from `myMessage.js`. The styling is handled by an external CSS file, with the text formatted at 12em and centered.

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