Activity6_task3
✓ Published0🌍 Public
This example demonstrates how to create a simple static web page using D3.js and ES6 modules. It shows a single HTML element displaying the text “Hello VizHub!” centered on the page with large font styling. The code imports the `select` function from the D3 library via ES6 `import` syntax and uses it to update the text content of a `div` element. It also imports a local module `myMessage.js` to provide the message string, while additional JavaScript includes a regular expression and a numeric variable. The page loads D3 from a CDN and uses separate CSS and JavaScript 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