Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Meyve Sepeti

Public visualization

Viewing a saved revision (read-only)

fa828c10fb104fba9067b845fbb3609a

Meyve Sepeti

0 stars1🌍 Public
Aases1996
Last edited Jun 2, 2020
Created on May 28, 2020

This example shows a fruit bowl visualization where apples and lemons are rendered as colored circles inside a gray bowl. The scene updates over time, removing fruits and changing an apple into a lemon. The code uses `scaleOrdinal` for color and radius mapping, `selectAll` with data joins to manage entering and exiting elements, and SVG `<circle>` and `<text>` elements. Transitions are handled through `setTimeout` calls that modify the fruits array and trigger a re-render with the `fruitBowl` function.

AI-generated description