Skip to main content
100%

Bowl of Fruit - General Update Pattern

✓ Published1🌍 Public
Ccathykan
Last edited May 8, 2020
Created on May 8, 2020

This example demonstrates the general update pattern to illustrate three types of changes to a dataset: removal, modification, and addition. Five apples are initially rendered as circles, then one apple is removed, and a remaining apple transforms into a lemon after a timeout. The D3.js v5 API is used with the `select` method to manage the SVG, while the `scaleOrdinal` from the `d3` module defines color and radius mappings. The React starter framework is visible, though the rendering is done directly to an SVG element.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes