Skip to main content
100%

Scatter Plot with Colour Legend

✓ Published1🌍 Public
CChris Briggs
Last edited Nov 18, 2021
Created on Nov 18, 2021

This interactive scatter plot visualizes the Iris dataset, plotting petal length against sepal width. Each point is colored by species, with a categorical color legend displaying the three species types (setosa, versicolor, and virginica) using distinct colors. Built with React and D3 v5, the visualization uses `scaleLinear` for the x and y axes, `scaleOrdinal` for the color encoding, and renders as an SVG with circles representing individual data points. The code includes hover tooltips showing the petal length value, and the data is loaded from a CSV file containing 150 iris flower measurements.

AI-generated description

A Scatter Plot based on Iris Data

MIT Licensed

Similar vizzes