Skip to main content
100%

Untitled

✓ Published0🌍 Public
Ppengming0807
Last edited Oct 14, 2021
Created on Oct 14, 2021
Forked from Hello VizHub

This example demonstrates how to combine D3.js with ES6 modules in a VizHub project. It loads D3 from UNPKG and uses the `select` function to set the text content of an HTML element with the id “message.” The text itself comes from a separate local module, `myMessage.js`, which exports a string. The stylesheet centers this message and applies a large font size, resulting in a simple, visually prominent greeting.

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