{"version":"1.0","type":"rich","title":"Object constancy","description":"Five fruits sit in a row as colored circles with labels, shifting position when an apple is removed or changed into a lemon. The d3 selection with a key function preserves each fruit’s identity across updates, while `transition().duration()` animates the circle’s radius to zero on exit and slides the remaining fruits to their new slots. `scaleOrdinal` maps fruit type to color and radius, and all rendering uses SVG.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/170dcc861d534a12bb77837fab8fff99?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}