Fork of Hello VizHub
✓ Published1🌍 Public
This example demonstrates a minimal D3.js setup that renders a static text message centered on the page. It shows how to load D3 via a CDN and use ES6 module imports, including a local module (`myMessage.js`) that exports the displayed string. The code uses `select` to target the `#message` div and sets its content, with styling from `styles.css` controlling the large font size and alignment. It serves as a template for understanding module structure and basic DOM manipulation with D3 v5.
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