🌍 Public
Viewing a saved revision (read-only)
430eebaade3e4a04a546e85dd8e0c5dd
Fork of Activity 7
This example demonstrates the fundamental workflow of a VizHub project, showing how to combine D3.js with local ES6 modules to manipulate the DOM. It loads D3 v5 from UNPKG and uses the `select` function from the `d3` namespace to set the text content of an HTML element. A separate local module named `myMessage.js` exports a string, which is imported and displayed in the page. The visualization is purely text-based, with styling applied through CSS to center the message at a large font size.
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.