Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to set up a minimal D3.js project within the VizHub environment, showing a single text element that reads “Hello VizHub!”. It highlights the use of ES6 modules for importing both local code and external libraries. The code imports the `select` function from D3 v5 via UNPKG and uses it to set the text content of a `div` element based on a string exported from a separate local module. The HTML page loads D3 from a CDN and a bundled JavaScript file, while a local stylesheet provides basic styling.
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