Skip to main content
100%

Election History

✓ Published0🌍 Public
Aalexmacy
Last edited Feb 25, 2017
Created on Feb 25, 2017

This animated SVG visualization shows the history of U.S. presidential elections from 1789 onward, with each state’s electoral votes represented by a colored block arranged in a grid. The blocks are colored by the winning party (Democratic-Republican, Federalist, Other) for each election year, and the chart updates with a smooth transition as the user steps through time. Built with D3 v4, it reads from the `elec.csv` dataset and incorporates an avoidant tooltip that follows the cursor, displaying detailed information about each state’s vote counts and percentages when hovered. The animation cycles through election years, highlighting the winning party in each state.

AI-generated description

This is a riff on this chart that I made for testing the tooltip from here: Avoidant Tooltip

mit Licensed

Similar vizzes