Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup that renders a centered “Hello World!” message. The visualization shows how VizHub enables modular code organization, as the `index.js` file imports both the `select` function from D3 and a local ES6 module, `myMessage.js`, using `import` statements. The HTML loads D3 v5 from UNPKG and links to external CSS and compiled JavaScript files. The code uses the `select('#message').text()` method to update the page’s content, showcasing fundamental D3 selection and DOM manipulation.
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