Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to combine D3.js with local ES6 modules in a web page. It uses D3’s `select` function to find a DOM element by ID and set its text content, while a separate module (`myMessage.js`) exports a string constant. The page loads D3 from a CDN (unpkg) and its CSS from a local file, with the final message displayed in large centered text.
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