Activity6_Task2
✓ Published0🌍 Public
This example demonstrates how VizHub combines ES6 modules with D3.js to render a simple text message inside an HTML page. The code uses `import { select } from 'd3'` to manipulate the DOM and sets the content of a `#message` div to the string "Hello VizHub!". It also imports a local module, `myMessage.js`, to supply that text, and includes a CSS file for centered, large-font styling. The visualization is entirely static, with no data source or dynamic rendering involved.
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