Skip to main content
100%

Activity_6 Task-3

✓ Published2🌍 Public
Kkrishna444battula@gmail.com
Last edited Oct 20, 2024
Created on Oct 20, 2024
Forked from Hello VizHub

This example demonstrates how to use D3.js v5 to display a text message in the center of a webpage, fetched from a local ES6 module. The code utilizes the `select` method from the D3 library to target a `div` element with the ID `message`, then sets its text content using the imported `message` variable from `myMessage.js`. The page loads D3 from UNPKG via a CDN, and styling is handled through a linked CSS file. It illustrates basic ES6 module imports and D3’s DOM manipulation capabilities.

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