Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Color and size legends - test

Public visualization

Color and size legends - test

0 stars0🌍 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 description

Comments

Sign in to join the discussion.

MIT Licensed