{"version":"1.0","type":"rich","title":"Making a Color Legend","description":"A scatter plot of the Iris Dataset displays petal length against sepal width, with each point colored by species. A separate color legend identifies the three species using colored circles. Built with React and D3 v5, the visualization uses `scaleOrdinal` for the color mapping and `scaleLinear` for the axes. The SVG output includes custom axis components and a `ColorLegend` component that generates the legend ticks from the color scale's domain.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/900d50ae178b41469cc977da31c2c74f?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}