Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bowl of fruits LEGEND

Public visualization

Viewing a saved revision (read-only)

b722935ca5e241e29ba651d9062b375d

Bowl of fruits LEGEND

0 stars0🌍 Public
Vvladvaculin
Last edited Sep 10, 2019
Created on Sep 4, 2019

This visualization demonstrates two legends for a bubble chart: a categorical color legend mapping fruit types (apple, lemon, lime, orange) to colors via `scaleOrdinal`, and a quantitative size legend mapping numeric values to circle radii via `scaleSqrt`. The legends are built using D3 v5's selection API, appending SVG groups and circles. Hovering highlights the circles with a blue stroke. The data is synthetic, generated with `Math.random()`.

AI-generated description

Hover to see the details.