Activity6_Task 2
✓ Published1🌍 Public
This example demonstrates a minimal D3.js setup that loads the library via UNPKG and uses ES6 modules to display a static message. It shows how `import { select } from 'd3'` manipulates the DOM by setting the text of a `#message` div, while a separate local module (`myMessage.js`) exports the string content. The page also imports a stylesheet to center and scale the text with a 12em font size. The visualization itself contains no data or interactive elements.
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