Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

bowl of fruit 3

Public visualization

bowl of fruit 3

0 stars2🌍 Public
Wwyh1029
Last edited Apr 1, 2020
Created on Mar 25, 2020
Forked from D3.js introduce

A set of fruit circles animates in and out of an SVG bowl, with apples and lemons distinguished by red and yellow fills and different radii. Clicking a fruit highlights it with a black stroke, triggering a re-render through the custom `fruitBowl` function. The example uses `d3.scaleOrdinal` for color and size mappings, `d3.range` to generate initial data, and `transition` with 1000ms duration to smoothly animate enter, update, and exit states as fruits are removed or change type over time.

AI-generated description

bowl of fruit 3 点击亀互

Comments

Sign in to join the discussion.

MIT Licensed