Skip to main content
100%

Color and Size Legends

✓ Published0🌍 Public
Mmla341
Last edited Jun 23, 2020
Created on Jun 23, 2020
Forked from Nested Logic

This example demonstrates two distinct legend types for data visualization: a color legend mapping categorical fruit names to distinct hues, and a size legend using a square-root scale for numeric values. Animated circles fade in with a two-second transition for the color legend, while the size legend renders static, semi-transparent circles. Both legends use D3 v5 selection methods, including enter/merge/exit patterns, and are built with React. The visualizations are rendered in SVG, with text labels positioned alongside each legend item.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes