Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Color and Size Legends

Public visualization

Viewing a saved revision (read-only)

2b649bf3574b448e8e0513a89b247c19

Color and Size Legends

0 stars0🌍 Public
UUzma Khan
Last edited Jun 29, 2019
Created on Jun 29, 2019

A D3.js visualization demonstrates two separate legends for encoding data. The color legend maps categorical fruit names to distinct colors through an ordinal scale, displaying circles with text labels. The size legend uses a square-root scale to relate numeric values to circle radii, showing five evenly spaced ticks. Both legends are rendered as SVG groups, with circles and text positioned using translate transformations, and the size legend filters out zero values.

AI-generated description