🌍 Public
Viewing a saved revision (read-only)
5cc2053dac4d45f185dff9f45744adb3
Fork of Activity6_T3.2
This example visualizes the Iris dataset as a scatter plot, showing the relationship between petal length and width for three flower species, with each species color-coded (skyblue, lightgreen, orange). The code uses D3 v6 APIs including `scaleLinear`, `extent`, `axisLeft`, and `axisBottom` to create an SVG chart. It loads CSV data asynchronously via `d3.csv`, maps data points to circle elements using `join('circle')`, and labels axes with rotated text. The plot fills the full browser window, with axes positioned according to specified margins.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.