🌍 Public
Viewing a saved revision (read-only)
5fcd7a57ae374107a72decc8c93274b9
Assignment2_WorldMap
This example displays a simple web page with the text “Hello VizHub!” centered on the screen. It demonstrates how to import D3.js functions and local ES6 modules within a VizHub project. The code uses `d3.select` to target the `#message` div and set its text content, while CSS styles control the font size and alignment. The page is built with an `index.html` file that loads D3 v5 from UNPKG and includes a compiled `bundle.js` script.
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.