Skip to main content
100%

Activity6-Task3

✓ Published0🌍 Public
Ssowmyaammula.sdv@gmail.com
Last edited Apr 4, 2024
Created on Apr 4, 2024
Forked from Activity6-Task3

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 description

We are Displaying the IRIS dataset using Scatter plot.

MIT Licensed

Similar vizzes