Activity6-Task3
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length on the x-axis and petal width on the y-axis. Each circle is colored by species—setosa (skyblue), versicolor (lightgreen), and virginica (orange)—using a custom switch-based color mapping. The code loads CSV data from a GitHub repository, parses numeric fields, and applies D3’s `scaleLinear` with `extent` to set axis ranges. It renders SVG circles via `selectAll` and `.join`, with axes added using `axisLeft` and `axisBottom`. Axis labels are positioned with `rotate(-90)` for the y-label, and the plot fills the browser window using `window.innerWidth` and `innerHeight`.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.
MIT Licensed