Skip to main content
100%

Bowl of Fruit General Update Pattern

✓ Published0🌍 Public
MModalMBS
Last edited Sep 29, 2020
Created on Sep 29, 2020

This example demonstrates the general update pattern for data joins in D3, using a bowl of fruit where apples and lemons appear, disappear, and change type over time. The visualization shows how enter, update, and exit selections handle dynamic data, with circles animating their radius via transitions. Built with React and D3 v5, it uses scaleOrdinal for color and size mappings, and the merge method to combine selections. Clicking a fruit selects it with a black stroke, while setTimeouts trigger data changes every few seconds.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes