Skip to main content
100%

TD1 - 1

✓ Published0🌍 Public
RRomain
Last edited Sep 6, 2023
Created on Sep 6, 2023
Forked from MIAGE base

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes