Fork of click 的hover效果动画
This example demonstrates animated hover effects on a fruit bowl visualization, where circles represent fruits and change appearance when selected. It shows how enter, update, and exit selections work through D3’s data join, with transitions animating circle radii and positions over one second. The code uses D3 v5 APIs including `scaleOrdinal` for color and radius mapping, `selection.merge`, and `transition.attr`. Hovering sets a selected fruit ID, triggering a black stroke on the active circle. Data updates are timed, removing fruits or changing types, with all rendering handled in SVG.