Activity 6
✓ Published1🌍 Public
This example demonstrates the minimal structure of a VizHub project, showing how to combine D3 with ES6 modules and local styling. It uses D3’s `select` function to set the text content of a `div` element, pulling a string from a separate local module via `import`. The page renders a single centered message, “Hello VizHub!”, with D3 loaded from a CDN and the DOM updated in plain JavaScript. The code also includes an unused variable and regular expression to illustrate syntax support.
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