Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js visualization that renders a centered message on a web page. It shows how to load D3 from a CDN, use ES6 module imports, and combine local JavaScript modules with the library. The code uses `d3.select` to target the `#message` div and sets its text content to the string exported from a separate local module. The example also includes basic CSS styling to control font size and text alignment, highlighting the integration of multiple file types in a single VizHub project.
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