🌍 Public
Viewing a saved revision (read-only)
6bc06710f20047ccae252018c097ac7f
Scatter Plot Decision Boundaries
The scatter plot displays the Iris dataset, mapping sepal length against sepal width with points colored by species. Three semi-transparent, colored regions overlay the plot, visually representing approximate decision boundaries that partition the feature space by species. The visualization uses D3’s `scaleLinear` and `scaleOrdinal` for coordinate and color mapping, and renders the regions as SVG paths built from manually defined coordinate arrays via `d3.line()`. Points are drawn as circles with 0.6 opacity, and the plot includes tick marks and axis lines generated through D3’s tick API.
AI-generated descriptionReact Starter code.