Activity 6_Task 1
✓ Published1🌍 Public
This example demonstrates how to load D3 via UNPKG and use ES6 `import` statements to bring in both D3 API functions and local modules. The code imports `select` from D3 and a custom `message` function from a local ES6 module, then uses `select('#message').text(message)` to display the text "Hello VizHub!" in the center of the page. A stylesheet styles the message with a large 12em font, and HTML includes the D3 library from a CDN before executing the bundled JavaScript.
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