Skip to main content
100%

Fork of Reusable D3 Scatter Plot

✓ Published0🌍 Public
Ppavankalyan1507
Last edited Mar 23, 2022
Created on Mar 23, 2022

This interactive visualization cycles through four attributes of the Iris dataset, displaying a scatter plot that updates every two seconds. Built as a reusable D3 chart, the code uses `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to render axes and circles via SVG. The x-axis switches between petal width, sepal width, petal length, and sepal length while the y-axis remains fixed to sepal length. Data loads from a remote CSV using `d3.csv`, with the animation driven by `setInterval` and `svg.call(plot)`.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes