Skip to main content
100%

Bowl fruit swapper

✓ Published1🌍 Public
Uuttam-vish
Last edited Feb 28, 2020
Created on Feb 18, 2020
Forked from HTML Starter

This example shows a simple animated data transition of fruit items arranged in a horizontal row. Five red apples initially render as circles; after one second, the last apple is removed, and after another second, the second apple changes into a yellow lemon. The visualization uses D3.js (v5) to bind data to SVG circle elements, employing `scaleOrdinal` for both radius and color mappings based on fruit type. The `select` and `range` utilities manage element selection and data generation, with state changes triggered by `setTimeout`. The rendering is entirely SVG-based, with custom fill colors for each fruit category.

AI-generated description

Bowl of fruit

MIT Licensed

Similar vizzes