🌍 Public
Viewing a saved revision (read-only)
b0fc42e1f99b4eeca36b46848a622e91
Task-8
This example visualizes the Iris dataset with a scatter plot, mapping petal length and width on the x- and y-axes while coloring each point by species (setosa, versicolor, and virginica). It uses D3 v6’s `csv`, `scaleLinear`, `extent`, and `axisLeft`/`axisBottom` APIs to load data, position circles, and render axes as SVG, with data sourced from a GitHub-hosted CSV. Colors are assigned via a switch statement, and axis labels are added as SVG text elements.
AI-generated descriptionWe are Displaying the IRIS dataset using Scatter plot.