Fork of MIAGE base pour laura
✓ Published0🌍 Public
This example demonstrates interactive circles and rectangles within an SVG canvas using D3 v5. A group of three colored circles (green, blue, red) responds to mouseover events by turning yellow and using D3 transitions to animate to random positions. Clicking a black rectangle triggers a series of chained transitions that move the red circle along a defined path. The visualization also includes two additional concentric circles that relocate on mouseover. The code imports the D3 library via UNPKG and uses D3 selection, attribute manipulation, and transition methods for all animations.
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