🌍 Public
Viewing a saved revision (read-only)
cea4febd7dfa41a8891c2f5168bced8e
Activity 7 Question 1
This example demonstrates how to display a static text message using D3.js and ES6 modules. The code imports the `select` function from D3 and sets the text content of a `div` element to “Hello VizHub!”. It also imports a local module to supply the message string and defines a regular expression and a numeric constant. The HTML loads D3 from a CDN, includes a CSS file for styling, and bundles the JavaScript within the page structure.
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.