Activity 6_Task 3.1_Tutorial
✓ Published1🌍 Public
This scatter plot visualizes the Iris dataset, mapping petal length and width for each flower sample. Points are colored by species, with setosa in blue, versicolor in green, and virginica in red. The code loads the CSV data via d3.csv, then uses d3.scaleLinear with d3.extent to establish the x and y scales, and renders circles with d3.selectAll and .join. Axes are generated using d3.axisLeft and d3.axisBottom, with custom labels added as SVG text elements. The visualization fills the browser window using window.innerWidth and window.innerHeight.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.
MIT Licensed