🌍 Public
Viewing a saved revision (read-only)
9dec3093fd174395a3d0c6d473d869d7
Making a Color Legend
This scatterplot of the Iris dataset visualizes petal length against sepal width, with points colored by species using an ordinal color scale. An interactive color legend maps species names to colors using circles and text within an SVG canvas. Built with React and D3 (v5), the visualization uses d3.scaleOrdinal for color mapping, d3.scaleLinear for axes, and custom React components for rendering axes, marks, and the legend.
AI-generated description