Fork of Activity-6
✓ Published0🌍 Public
This example demonstrates basic D3.js text rendering on a web page. It uses the D3 `select` function to target an HTML element by ID and set its text content. The visualization loads D3 v5 via UNPKG and imports a message from a local ES6 module. A CSS stylesheet controls the presentation, centering the message and displaying it at a large font size. The code also includes a regular expression and a numeric variable, though these are not used in the visual output.
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