Activity6_T3
✓ Published0🌍 Public
This scatter plot visualizes the Iris dataset, showing the relationship between petal length and petal width for three flower species. Each circle is color-coded by species (setosa, versicolor, virginica) using a custom switch function, with the radius fixed and sepal dimensions mapped to unused rx/ry attributes. Built with D3.js v6, the visualization loads CSV data via `d3.csv`, employs `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to construct axes, and renders SVG circles through data joins. Axis labels are added with rotated text elements, and the chart fills the browser window using window dimensions.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.
MIT Licensed