Skip to main content
100%

Activity 6

✓ Published0🌍 Public
YYeruva Snehith Reddy
Last edited Oct 19, 2024
Created on Oct 19, 2024

This example demonstrates how to set up a minimal D3.js visualization using ES6 module imports. It displays the text “Hello VizHub!” centered on the page, showing the basic integration of D3 with local JavaScript modules. The code uses `select` from d3 to manipulate the DOM, imports a message string from a separate `myMessage.js` module, and relies on D3 v5 loaded via UNPKG. The styling is handled with plain CSS, making it a straightforward illustration of modular D3 project structure.

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