Skip to main content
Public

Share visualization

Loading preview…

US Election Data Scatterplot

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

US Election Data Scatterplot

1
PPeter VanNostrand
Last edited Sep 28, 2021
Created on Sep 14, 2021
Forked from D3 Scatter Plot

This scatterplot displays US House election results from 2008 to 2020, plotting each candidate’s vote count against the total votes cast in their district. The x-axis shows total votes, while the y-axis shows candidate votes, with overlapping semi-transparent circles revealing density patterns. The visualization uses d3.v6 to load CSV data from a GitHub gist, parses rows with numeric fields, and renders points via SVG circles scaled with d3.scaleLinear. Axes are generated using d3.axisLeft and d3.axisBottom, with the chart sized to the full window.

AI-generated description

This visualization is a scatterplot of election results for all US house seats from 2008 to 2020. This plot shows the number of votes for a given candidate as a function of the total number of votes - that is the x-axis represents the total number of votes in a given election and the y-axis represents the number of those votes that each candidate in that election captured.

Data Source: US House Elections Data 2008-2020.

Comments

Sign in to join the discussion.

MIT Licensed