🌍 Public
Viewing a saved revision (read-only)
12b126b4e0184021ae5caf03e366f889
Activity 7
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.