Skip to main content
100%

Activity6_T3

✓ Published0🌍 Public
Tthakurnikhitha4@gmail.com
Last edited Apr 10, 2024
Created on Apr 10, 2024

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 description

We are Displaying the IRIS dataset using Scatter plot.

MIT Licensed

Similar vizzes