Activity6_Task3
✓ Published0🌍 Public
This example demonstrates how to integrate D3.js with ES6 modules in a VizHub project. It loads D3 v5 via UNPKG and uses the `select` API to update the text content of a div element. The code imports a local ES6 module, `myMessage.js`, which exports a string that gets displayed as the message. A simple CSS rule centers the text and sets its font size to 12em. The visualization presents a static, styled text output rather than a dynamic data-driven graphic.
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