Color and size legends - test
✓ Published0🌍 Public
MMukund Khandelwal
Last edited Sep 30, 2018
Created on Sep 30, 2018
This example demonstrates a static SVG visualization of fruit types in a bowl, using both color and size to distinguish between apples and lemons. It renders fruit as circles with radius and fill color determined by category, alongside text labels for each fruit. The code uses d3.scaleOrdinal for both color and radius scales, and builds the scene through d3 selection and merging operations in the `fruitBowl` function.
AI-generated descriptionMIT Licensed