Activity 6
✓ Published0🌍 Public
This example demonstrates how to set up a minimal VizHub project using D3 v5 and ES6 modules. It dynamically updates the text of an HTML `<div>` element with the message "Hello VizHub!" using D3’s `select` function. The project showcases importing both external D3 APIs and local JavaScript modules, along with linking a separate CSS file for styling. The code initializes a variable and a regular expression, though these are not used in the rendering.
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