🌍 Public
Viewing a saved revision (read-only)
8ce807e861314d5c948b3b8296bf62ca
React Scatter Plot w/ Color Legend
This example presents a scatter plot of the Iris dataset, mapping sepal length and width and coloring each point by species, with a color legend displayed to the right. The plot is rendered as an SVG using React components that leverage d3-scale for linear and ordinal scales, while axes are generated with d3’s tick methods and formatting via d3-format, with data loaded using d3.csv.
AI-generated descriptionA Scatter Plot of the Iris Dataset