Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates how to incorporate D3.js into a VizHub project using ES6 modules and a local CSS file. It loads D3 v5 via UNPKG and uses the `select` API to target a div with the id `message`, setting its text content to a string imported from a separate `myMessage.js` module. The page renders a simple centered text display, with styling applied through `styles.css`. The visualization serves as a minimal template for structuring reusable module code with D3.
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