Fork of Scatter Plot with Color Legend
✓ Published0🌍 Public
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.
MIT Licensed