Skip to main content
100%

Fork of Hello VizHub

✓ Published0🌍 Public
Llkahlon9
Last edited Jan 14, 2021
Created on Jan 14, 2021
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup that renders a static "Hello World!" message to the page. It shows how to import the `select` function from the D3 library via UNPKG and import a local ES6 module named `myMessage.js` that exports the text string. The code uses `document.getElementById` to set the message content, though an alternative D3 `select` call is also commented out. The page’s styling is defined in `styles.css`, which centers the text and sets a large font size.

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