🌍 Public
Viewing a saved revision (read-only)
ab50efc0bea042e299f91c28dc61a46c
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