🌍 Public
Viewing a saved revision (read-only)
bcddb56fad6c452ba498ea6d166b5eba
Fork of Scatter Plot with Color Legend
This example visualizes the classic Iris dataset, plotting petal length against sepal width for three flower species. Each point is a colored circle, with a legend mapping species to colors, and axis labels clearly identifying the measurements. The visualization uses a React component structure with D3 scales, including `scaleLinear` for axes and `scaleOrdinal` for the color mapping, rendering SVG elements through React. Data is loaded asynchronously via the D3 `csv` utility, and the legend and axes are composed from modular React components.
AI-generated descriptionA scatter plot of The Iris Dataset with color legend.