🌍 Public
Viewing a saved revision (read-only)
558aa281b912416f8867bfc1d142614e
Task=9&10 Tutorial
This example demonstrates a simple D3.js visualization that displays a greeting message centered on the page. The code uses the `d3.select` function to target the HTML element with the id `message` and sets its text content through D3's selection API. The visualization also imports a local module to supply the message text and includes a regular expression pattern and numeric constant that are defined but not used for rendering. The page styling is handled through external CSS, which sets a large font size and centers the text.
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.