Activity6_task4_question1
✓ Published0🌍 Public
This example demonstrates basic D3.js and ES6 module usage within a VizHub project. It loads D3 from UNPKG and imports the `select` function from the D3 library to target a div element. The code also imports a string constant from a local ES6 module and assigns it as the text content of that div. The page renders the message “Hello VizHub!” centered in a large font size, according to the styles.css rule. This serves as a simple template for combining D3 selection methods with modular 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