Fork of Activity6_Task1
✓ Published0🌍 Public
This example demonstrates how to load D3 via a CDN and use ES6 module imports to structure a simple D3 project. It renders a static text message inside a div, selected and updated using `d3.select`. The visualization also includes a local ES6 module (`myMessage.js`) that exports the message string, and imports the `select` function directly from D3 v5. The code uses D3’s UNPKG distribution and modifies the DOM’s text content without any data binding or complex rendering.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed