🌍 Public
Viewing a saved revision (read-only)
a82b3f07df934d10baa25bb7194fe813
Fork of Activity 6_task 3.2
This scatter plot visualizes the Iris dataset, showing sepal length against petal length with points colored by species. The chart uses D3 v7’s `scaleLinear` for axes, `scaleOrdinal` with `symbolsFill` to assign distinct shapes to each species, and a custom legend to map shapes to species names. Data is loaded from a remote CSV via `fetch` and parsed with `d3.csvParse`, with numeric fields coerced to numbers. The visualization updates reactively through a simple state management pattern, re-rendering the SVG on data arrival.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.