Fork of Hello VizHub
✓ Published1🌍 Public
This example demonstrates how VizHub integrates D3.js version 5 with local ES6 modules, producing a simple text display. It uses `import { select } from 'd3'` to select the `#message` div and set its content, while a separate `myMessage.js` module exports the string "Hello VizHub!" through the `message` constant. The code also includes a regular expression and CSS styling from `styles.css` that centers the text at a large font size.
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