Fork of Hello VizHub
✓ Published0🌍 Public
This example demonstrates the modular workflow of VizHub, showing how to combine D3.js with local ES6 modules to create a simple interactive page. The code loads D3 v5 from a CDN and uses `import { select } from 'd3'` to manipulate the DOM, setting the text of a `#message` div to display "Hello VizHub!" from the exported `message` variable in `myMessage.js`. The page also includes CSS styling for centered, large text. It illustrates the basic structure of a VizHub visualization project, including HTML, JavaScript, and stylesheet files.
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