Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js application that sets the text content of an HTML element to display “Hello VizHub!”. It loads D3 v5 from a CDN via UNPKG and uses the `d3.select` API to target a div with the ID `message`, setting its text through the `.text()` method. The code also showcases ES6 module imports, both from the D3 library and from a local module called `myMessage.js`, which exports the message string. The styling is applied through an external CSS file.
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