Activity 6_Task 1
✓ Published0🌍 Public
This example demonstrates how D3.js version 5 can be loaded via UNPKG and used alongside local ES6 modules to dynamically update page content. It shows the ability to import specific functions like `select` from the D3 library, as well as custom local modules such as `message.js`, which exports a simple string. The code uses D3's `select` API to target a div element and set its text content, with styling applied via an external CSS file. It serves as a minimal starter template highlighting D3's modular import capabilities.
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