D3 Block-a-Day: Day 22, January 22nd, 2017
This interactive scatter plot shows the relationship between a Major League Baseball team’s win total in one year and its win total in the previous year, with a correlation value displayed for each season. A draggable slider lets viewers animate through years from 2016 back to 1902, updating the dots and their tooltips. The visualization uses D3 v4’s `d3.json`, `d3.scaleLinear`, `d3.axisBottom`, and `d3.axisLeft`, along with SVG elements and a custom year-tween timer for smooth transitions. Data comes from a JSON file listing team wins per season.
AI-generated descriptionD3 Block-a-Day: Day 22, January, 22th 2017
New Year's Resolution for 2017: Make a D3 Block a day to teach myself D3. This is Number 22. This example reduces the size of the January 20th baseball wins scatter plot. Like previously, the correlation is supplied in the data set which is JSON.
forked from <a href='http://bl.ocks.org/dbetebenner/'>dbetebenner</a>'s block: <a href='http://bl.ocks.org/dbetebenner/f76af3a47b93b6e1b2acacc378f48df2'>D3 Block-a-Day: January 22nd, 2017</a>