Activity 7_Task 1
✓ Published1🌍 Public
This example demonstrates a minimal D3.js setup within the VizHub environment, rendering a simple text message that is centered on the page. It shows how to import D3’s `select` function and local ES6 modules to manipulate a DOM element. The code uses the `d3.select` API to target the `#message` div and set its text content, while `styles.css` applies large, centered typography. The visualization serves as a baseline template, highlighting basic module imports and D3’s DOM selection capabilities without additional data 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