🌍 Public
Viewing a saved revision (read-only)
2294c55f82aa442989f4993b8f7b1051
Scatterplot with Color Legend
This scatterplot visualizes the Iris flower dataset, plotting sepal length against sepal width with points colored by species. A color legend maps species names to distinct hues, while axis labels and tick marks provide scale context. Built with React and D3 v7, the example uses `scaleLinear` for positioning, `scaleOrdinal` for categorical colors, and custom reusable components like `AxisBottom`, `AxisLeft`, and `ColorLegend` to render SVG elements. Data is loaded asynchronously via `csv` from a remote URL.
AI-generated descriptionA program that loads in some data about CSS colors