TD1 - 1
✓ Published0🌍 Public
This example renders three static circles (green, blue, red) aligned horizontally within an SVG. A red circle with the id `id1` reacts to mouseover and mouseout events by changing its fill color to black and back to red. Clicking a rectangle triggers a two-second `d3.transition` that moves the red circle twice in sequence. The visualization demonstrates D3 v5 selection, attribute manipulation, event handling, and chained transitions, using `d3.select` and `svg.attr` from the D3 API.
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