🌍 Public
Viewing a saved revision (read-only)
bf659c5385c946b2b0c3a41aaa2b8f89
Activity6_task 2
This example demonstrates loading D3 from a CDN and using ES6 module imports to display a centered message. The code uses `select` from D3 to target a `<div>` and set its text from a separate local module, `myMessage.js`. It also defines a numeric constant and a regular expression, though neither is applied to visual output. The page’s styling, including large font size and centered text, comes from an external CSS file. The example primarily showcases VizHub’s support for modular JavaScript and external library integration.
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.