{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern2, object constancy","description":"Circles representing apples and lemons transition smoothly within an SVG, demonstrating D3's general update pattern with object constancy. The visualization shows how data joins preserve element identity across updates, animating enter, update, and exit selections via `selection.merge()` and `transition().duration()`. Using React-compatible rendering, the example manipulates a fruit array with `setTimeout`, removing items or changing types, while D3 v5's `scaleOrdinal` maps fruit types to colors and radii. This highlights keyframe-less state changes through reusable D3 functions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/6e927fdc9ca143468e3c469a86a78085?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}