Activity 7
✓ Published1🌍 Public
This example demonstrates how to build a simple D3.js application that displays a custom message in the browser. It shows a single text element, "Hello VizHub!", centered on the page using CSS styling, and serves as a minimal template for setting up a VizHub project. The code loads D3 v5 from a CDN and uses the `select` API to target a div element by ID, setting its text content from a locally imported ES6 module. The example highlights basic module imports, DOM manipulation, and integration of external libraries.
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