Skip to main content
100%

Datasaurus Dozen D3 Scatter Plot

✓ Published1🌍 Public
KKaustav Sen
Last edited May 25, 2021
Created on May 24, 2021

This visualization cycles through the twelve datasets of the Datasaurus Dozen, revealing how datasets with nearly identical summary statistics can have wildly different distributions. Each dataset is displayed as a scatter plot for three seconds before transitioning to the next using a joined circle transition. The code uses d3.scaleLinear, d3.axisLeft, d3.axisBottom, and d3.transition to animate the points, axes, and plot title. Data is loaded from the TidyTuesday GitHub repository via d3.csv, with SVG rendering and opacity set on each circle.

AI-generated description

The data comes from Alberto Cairo courtesy of Steph Locke + Lucy McGowan.

Taken from the #TidyTuesday github repo here.

This represents 12 different datasets with almost identical summary statistics but wildly different underlying distributions.

Moral of the story: Always plot your data!

Question: Can I make the plot title first go up and then come down? line 123 of scatterPlot.js

MIT Licensed

Similar vizzes