Skip to main content
100%

Activity6_task3.2

✓ Published3🌍 Public
Iiftequaruddin883@gmail.com
Last edited Oct 22, 2024
Created on Oct 22, 2024
Forked from Hello VizHub

This example demonstrates a minimal D3.js setup within VizHub, showing how to load D3 from a CDN via UNPKG and import both D3 API functions and local ES6 modules. The code uses `select` from D3 to set the text content of a `div` element to "Hello VizHub!", with a message string exported from a separate `myMessage.js` module. Styling is applied through an external CSS file, which centers the text and sets a large font size. The example illustrates basic module import patterns and DOM manipulation with D3.

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