Skip to main content
100%

Hello VizHub

✓ Published0🌍 Public
GgabrielBar
Last edited Oct 28, 2020
Created on Oct 28, 2020
Forked from Hello VizHub

This example demonstrates how to combine D3.js with local ES6 modules in a web page. It uses D3’s `select` function to find a DOM element by ID and set its text content, while a separate module (`myMessage.js`) exports a string constant. The page loads D3 from a CDN (unpkg) and its CSS from a local file, with the final message displayed in large centered text.

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