Week 4
✓ Published0🌍 Public
This example displays a simple web page with the text “Hello VizHub!” centered and enlarged on the screen. It demonstrates the basic integration of D3.v5 into a project by importing the `select` function from the D3 API to target an HTML element and set its text content. The code also imports a local ES6 module, `myMessage.js`, to supply the displayed string. Styling is handled via an external CSS file, setting the message’s font size and alignment.
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