Activity_6 Task 1
✓ Published0🌍 Public
This example demonstrates how VizHub supports ES6 modules and D3.js imports to render a simple text message on a webpage. It uses `d3.select` to target a `div` element with the ID `message` and sets its content from an imported local module. The code showcases importing both the `select` function from the D3 library via UNPKG and a custom `message` value from `myMessage.js`. A fixed number and regular expression are also declared but not used in the visualization.
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