🌍 Public
Viewing a saved revision (read-only)
631878e45b1f4b67919e0a3ea4afadb2
ICE6_Q2 - Creating a Scatter Plot with D3
This example shows a scatter plot of the classic Iris dataset, mapping sepal length and width for individual flowers and coloring each point by species with green, red, and blue markers. The visualization uses D3 v6’s `scaleLinear` and `extent` to compute axes, then renders the data points as SVG circles with the `select` and `join` API. Axis labels are added via SVG `text` elements, and the plot includes axis ticks generated with `axisLeft` and `axisBottom` from the D3 module.
AI-generated description