Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to display a simple text message using D3.js within the VizHub environment. It loads D3 v5 from a CDN and uses an ES6 `import` statement to access the `select` function, alongside a local module that exports a string. The code sets the content of an HTML div element to “Hello VizHub!” via `select('#message').text(message)`, with styling applied from an external 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