Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js visualization that displays the text "Hello VizHub!" in the center of the page. It shows how an HTML page can load D3 from a CDN and use ES6 modules to structure code. The `index.js` file imports the `select` function from D3 and the `message` constant from a local `myMessage.js` module, then uses `select('#message').text()` to update the DOM. Styling is applied through an external CSS file, and three files—HTML, JavaScript, and CSS—work together as a basic template.
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