Skip to main content
100%

ICE7 Reusable Scatter Plot

✓ Published0🌍 Public
BBVNPK001
Last edited Mar 28, 2022
Created on Mar 27, 2022

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 description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes