{"version":"1.0","type":"rich","title":"Bowl of Fruit - General Update Pattern Special Cases","description":"This example demonstrates the General Update Pattern and its special cases using D3 v5 with SVG rendering. It shows a bowl of fruit represented as circles with labels, where apples and lemons are distinguished by color and size through ordinal scales. The code uses `selection.merge()` to handle enter and update selections together, while append operations occur only on enter, and exit selections are explicitly removed. Dynamic alignment of circle and text elements within grouped `<g>` elements illustrates nested data binding with the `data()` method.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/763f705d72e845feae0f6c25ab595a6f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}