{"version":"1.0","type":"rich","title":"Fork of Color and Size Legends - Component Experiment","description":"This fork of the D3.js legend component experiment passes parameters into chart functions by assigning properties directly onto the functions themselves, following the reusable charts pattern. It renders an SVG with two legends: a color legend using `d3.scaleOrdinal` for fruit categories and a size legend built with `d3.scaleSqrt` for numeric ticks. The code uses `selection.call()` to invoke each component, with styles defined in CSS for tick text and circle strokes.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/33276b05a8f449a095b97b97548175bc?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}