Fork of Hello VizHub
✓ Published1🌍 Public
This example demonstrates a minimal setup for a D3.js visualization using ES6 modules. It displays the text "Hello VizHub!" centered in the browser via D3’s `select` function, which sets the content of a div. The code imports `select` from the D3 library and a custom `message` string from a local module, showing both CDN-loaded D3 and local module imports. Styling is handled through CSS, with the text rendered at a large font size.
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