Activity 7
✓ Published1🌍 Public
This example demonstrates how VizHub supports modular JavaScript development and D3.js integration. The code imports the `select` function from D3 and a custom `message` from a local ES6 module, then uses `select('#message').text()` to display the text in the page’s div element. It shows basic module imports, a regular expression, and CSS styling applied via an external stylesheet. D3 is loaded from UNPKG, while local resources include the module, HTML, and CSS 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