Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to set up a minimal D3.js visualization using ES6 modules. It displays the text “Garima” centered on the page by importing the `select` function from D3 and a local `message` variable from a separate ES6 module. D3 v5 loads via UNPKG in the HTML, while the JavaScript file imports from the `d3` namespace and a custom `myMessage.js` file. The example highlights basic module imports and D3’s DOM selection and text-setting capabilities in a single-page setup.
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