{"version":"1.0","type":"rich","title":"Color size legend with D3.js!","description":"Two custom D3.js legends display categorical and quantitative mappings side by side. The color legend pairs a nominal `scaleOrdinal` with four fruit names, each linked to a distinct fill color, while the size legend uses a `scaleSqrt` to map numerical values to circle radii. Both legends are built as reusable SVG components, with `selection.selectAll` and `.merge` managing tick groups, and circles receiving graphic attributes directly from their respective scales.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/fb0447a363f842bd8e85e5684d30db5f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}