🌍 Public
Viewing a saved revision (read-only)
bcd20b0f7b424c97b94003e083a09871
Activity 7
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.