🌍 Public
Viewing a saved revision (read-only)
2fd2f51302164b169f52b28bb14a31d4
Fork of Scatter Plot with Color Legend
This example visualizes the Iris Dataset as a scatter plot, mapping petal length on the x-axis and sepal width on the y-axis, with color encoding species and a legend for reference. The visualization uses React with D3 v5, employing `scaleLinear` for axes, `scaleOrdinal` for categorical colors, and `extent` to set domains. Marks are drawn as SVG circles with tooltips showing formatted values. The code defines reusable axis and legend components, and loads data via `d3.csv` from a remote URL.
AI-generated descriptionA scatter plot of The Iris Dataset with color legend.