Skip to main content
100%

Fork of Reusable D3 Scatter Plot ICE-7

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

This animated scatter plot cycles through different pairings of Iris flower measurements, using petal and sepal dimensions from the classic Iris dataset. The code builds a reusable chart function with D3 v6, leveraging `d3.scaleLinear`, `d3.extent`, `d3.axisLeft`, and `d3.axisBottom` to render axes and circles in SVG. A `setInterval` updates the x-axis column every few seconds, while colors distinguish the three Iris species. The visualization is based on a fork of a reusable chart pattern, with data loaded as CSV from a GitHub gist.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes