Activity 6
✓ Published1🌍 Public
This example demonstrates how to combine D3.js with ES6 modules in a VizHub project. It uses the D3 `select` function to target a div element and update its text content with a message imported from a local module. The code imports `selection` methods from the D3 library via UNPKG and uses a custom `myMessage.js` module to supply the string. The page renders a simple, centered text display styled with CSS, showing basic data-binding and modular JavaScript integration without any external data source.
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