🌍 Public
Viewing a saved revision (read-only)
c4a2ca01ac874bf79ac13c9e9cf2d396
Activity_6 task 1
This example renders a simple text message, "Hello VizHub!", centered on a plain web page. It demonstrates the fundamental integration of D3.js v5 into a VizHub project by loading the library via the UNPKG CDN and using the `d3.select` API to set the content of an HTML `<div>` element. The code also showcases local ES6 module imports, pulling the displayed string from a separate `myMessage.js` file, and applies basic text styling through an external CSS file. The visualization itself is minimal, serving primarily as a template for D3 project structure.
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.