🌍 Public
Viewing a saved revision (read-only)
09acb8346d3e46f68cc906ce90bfdb95
Hello VizHub
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.