🌍 Public
Viewing a saved revision (read-only)
58e81f953b3642479f65db56e437e980
ICE7 Reusable Scatter Plot
This visualization displays the classic Iris dataset as a scatter plot, using petal width and sepal length as its primary axes—though a `setInterval` loop cycles through all four measurement columns every two seconds to animate the chart. The code builds a reusable `scatterPlot` function with d3.scaleLinear, axisLeft, and axisBottom, while the main script imports data via d3.csv and assigns colors with d3.scaleOrdinal. Rendering uses SVG circles with annotations for axes and legends. The example demonstrates d3.v6 reusable chart patterns and animated data transitions.
AI-generated descriptionA reusable scatter plot inspired by Towards Reusable Charts.
Shows the Iris Dataset.