Skip to main content
100%

activity6_task3

✓ Published1🌍 Public
Sshivasaiamaravadi@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example demonstrates how to combine D3.js with ECMAScript modules to create a minimal interactive page. It shows a text message displayed prominently in the browser, with D3’s `select` function used to target the `#message` div and update its content. The code imports a local ES6 module `myMessage` to supply the string, and includes a global D3 script loaded via CDN from UNPKG. The styling is handled by a linked stylesheet, and the visualization uses no data or rendering, serving as a template for modular D3 projects.

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