🌍 Public
Viewing a saved revision (read-only)
725dbbaa0a3446309e7480f6888c66c0
Activity6_tutorial3.2
This interactive scatter plot visualizes the Iris dataset, mapping sepal length on the x-axis and petal length on the y-axis, with species encoded by distinct marker shapes. The D3.js v7 code uses `scaleLinear`, `scaleOrdinal`, `symbolsFill`, and `symbol` within `scatterPlot.js` and `shapeLegend.js` to render the marks and a custom legend. Axes are drawn using `axisLeft` and `axisBottom`, and data is fetched as CSV and parsed with `csvParse`. The plot updates in response to window resizing, using SVG for rendering.
AI-generated descriptionTutorial 3.2 Scatter plot for iris dataset.