Skip to main content
100%

Fork of Animated Reusable D3 Scatter Plot

✓ Published0🌍 Public
EEmma Schaale
Last edited Nov 5, 2022
Created on Nov 5, 2022

This animated scatter plot displays the Iris dataset, cycling through four different x-axis dimensions (petal width, sepal width, petal length, and sepal length) every three seconds while keeping sepal length on the y-axis. Built with D3 v6, the visualization uses `scaleLinear`, `extent`, `axisLeft`, `axisBottom`, and `transition` to smoothly animate the repositioning of circles over one second. The chart is rendered as an SVG with a full-viewport layout, and each data point is a circle with a radius of 5 pixels. The code follows a reusable chart pattern with configurable width, height, margins, and data accessors.

AI-generated description

A reusable scatter plot inspired by Towards Reusable Charts and Observable: selection.join.

Shows the Iris Dataset.

MIT Licensed

Similar vizzes