Skip to main content
100%

Just replace an apple with a lemon (apply 'merge')

✓ Published0🌍 Public
DDi Zhen
Last edited Jun 21, 2019
Created on Jun 21, 2019

Five apples render as pink circles, then one apple is removed and a different apple changes to a yellow lemon. Built with D3 v5, the `fruitBowl` component uses `selection.selectAll` and the `.merge()` method to apply shared `fill` and `r` attributes from ordinal color and radius scales to both new and existing circles.

AI-generated description
MIT Licensed

Similar vizzes