🌍 Public
Viewing a saved revision (read-only)
1c739e26925e40c7b0cc68875313e73e
Reusable Scatter plot Activity 8
This interactive scatter plot visualizes the Iris dataset, mapping petal width against sepal length across three flower species distinguished by color. Built with D3.js, the visualization uses SVG circles and a reusable scatterPlot function that cycles through different column combinations on the x-axis every few seconds via setInterval. The code employs d3.csv for data loading, d3.scaleLinear for axis scaling, and d3.axisBottom/axisLeft for tick marks, while custom labels, a color legend, and a title are appended directly to the SVG.
AI-generated descriptionReusable scatter plot