Fork of Hello VizHub
✓ Published1🌍 Public
This simple example demonstrates how to set up a D3.js visualization using external libraries and local ES6 modules. It displays the text "Hello VizHub!" centered on the page. The code imports the `select` function from D3 v5.16.0 and a custom `message` string from a local module, then uses d3’s `select('#message').text(message)` to assign the text to a div element. CSS styling controls the message’s appearance through the `#message` selector.
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