{"version":"1.0","type":"rich","title":"Force Transitions to End State and Trigger End Event (v3)","description":"Eight circles transition horizontally across an SVG canvas, turning from black to olive on transition start and to steelblue on transition end. Clicking a circle forces its active transition to its final interpolated value and triggers the end event immediately, turning it blue while a secondary transition shrinks its radius. The example extends `d3.selection.prototype` with a custom `finish` method that inspects each transition’s internal timer state, manually invoking its callback with the remaining duration or infinity to flush the animation. It uses D3 v3’s `transition.attr`, `delay`, `duration`, and `each` event handlers on SVG circles.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-ae14de2768b5d07d9fbf554ae02caf02?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}