🌍 Public
Viewing a saved revision (read-only)
ae35aef069aa45e6a6a222afae499338
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