Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates a minimal D3.js visualization that renders a static text message on an HTML page. It shows how to integrate D3 with external modules and CSS styling, displaying "Hello VizHub!" centered on the screen at a large font size. The code imports the `select` function from D3 v5 and a custom `message` constant from a local ES6 module. It uses the `select` API to target the `#message` div and apply the text via the `.text()` method, with layout controlled by the included `styles.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