Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Object Constancy

Public visualization

Object Constancy

0 stars1🌍 Public
SSharvariPhadke
Last edited Jan 24, 2021
Created on Jan 22, 2021

This example animates a fruit bowl where apples and lemons appear, disappear, and change type while maintaining stable object identity through a general update pattern. The visualization uses D3 v6 with SVG and transition methods, assigning each fruit a unique ID and using ordinal scales for color and radius. The D3 `transition` with a 2000-millisecond duration smoothly moves circles and text to new positions as the data array changes via `pop()`, `filter()`, and type reassignment.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed