Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project - Ian Coolidge

Public visualization

Final Project - Ian Coolidge

0 stars0🌍 Public
IIan Coolidge
Last edited Apr 25, 2024
Created on Mar 28, 2024
Forked from Circles with D3

This interactive map visualizes U.S. presidential election results from 1976 to 2020, allowing users to explore state-level winners, vote counts, and electoral college totals via a dropdown menu and hover tooltips. A custom mode lets users cycle state control by clicking, and right-clicking opens a multi-line chart tracking Democratic and Republican votes over time for that state. The visualization uses D3.js with `d3.geoPath` and TopoJSON for the map, alongside data from the MIT Election Lab dataset.

AI-generated description

Visualization of US elections from 1976 to 2020.

Use the dropdown menu at the top to switch between elections. In the 'Custom' election, left click on a state to cycle it through Democratic, Republican, and Other control respectively.

Hover over a state in a non-custom visualization to view detailed information about the votes and parties in that state.

Right-click on a state to view a line chart showing the Democratic and Republican votes in that state over time. From this view, use the dropdown to return to the main map for a different election.

This visualization makes use of a publicly available US Elections Dataset.

Electoral vote counts by state are obtained from the National Archive.

This visualization adapts some of the VizHub templates by Curran Kelleher, in particular Axis Labels, Multi-Line Chart, and Simple Map.

Comments

Sign in to join the discussion.

MIT Licensed