Skip to main content
100%

Fork of Scatter Plot With Color Legend

✓ Published1🌍 Public
SSong Tao Chen
Last edited Jan 10, 2022
Created on Jan 9, 2022

This example visualizes the Iris dataset, plotting sepal length against sepal width for individual flowers. Each point is colored by species, with a color legend to the right identifying the three categories. Built with React and D3 v7, the visualization uses `d3.scaleLinear` for axes, `d3.scaleOrdinal` for color mapping, and renders as SVG. Custom React components handle axis ticks and legend marks, with tooltips providing formatted sepal length values on hover.

AI-generated description
MIT Licensed

Similar vizzes