Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js setup that displays the text “Hello VizHub!” in the center of the page. It shows how to load D3 v5 from a CDN and use local ES6 modules to organize code. The `select` function from D3 is used to target the `#message` div and set its text content, while a custom `message` value is imported from `myMessage.js`. The page uses a CSS file to style the message with a large, centered font size. This serves as a template for integrating D3 with modular JavaScript.
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