Skip to main content
100%

USA 2012 presidential election value-by-alpha (d3v3)

✓ Published0🌍 Public
AAlan McConchie
Last edited Nov 1, 2016
Created on Jul 5, 2016

This visualization displays the 2012 U.S. presidential election results at county level using a value-by-alpha choropleth map. Each county polygon is colored by its winning candidate—blue for Obama, red for Romney—with opacity encoded to the winner's vote percentage. The map renders in SVG with smooth animated transitions, using D3.js v3 to load the TopoJSON of county-level election returns and project them geographically. The visualization highlights the geographic distribution of vote margins, with more intense colors representing stronger support. Built with Blockbuilder.org, this work is a fork of almccon's original election map and is released under the MIT license.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/almccon/'>almccon</a>'s block: <a href='http://bl.ocks.org/almccon/cb30a0f6bdfa2aa5b15f8022b82bc8b1'>USA 2012 presidential election</a>

mit Licensed

Similar vizzes

Loading thumbnail…

USA 2012 presidential election

This choropleth map visualizes the results of the 2012 U.S. presidential election at the county level. Each county polygon is colored by winning candidate (Obama or Romney) with shading intensity reflecting the winner’s margin of victory, as encoded by the `WINNER` and `PCT_WNR` properties in the TopoJSON. The map is rendered in SVG using D3 v4, with color groups derived from the winning margin to show the geographic distribution of support. Counties where Romney won are shown in red, Obama in blue, and the legend uses the `group` property to bin the results by percentage range. The visualization is built from a TopoJSON file containing county-level election results, including vote counts for Obama, Romney, and other candidates, and uses an Albers USA projection to display the contiguous United States. The map is titled "USA 2012 presidential election" and was created by almccon, forked from a blockbuilder.org project. Metadata: title: USA 2012 presidential election author: almccon license: mit framework: d3 d3: d3.v4 rendering: svg source: gist Description: A choropleth map of the 2012 US presidential election results at the county level, colored by winning candidate and margin of victory. Users can click on counties to see details. Data: - County-level voting data from the 2012 U.S. presidential election. - Data includes vote counts for Obama, Romney, and others, along with winner and margin. Visual encoding: - SVG paths represent counties in the US. - Fill color encodes winner: blue for Obama, red for Romney. - Fill opacity encodes the winner's margin: more opaque = larger margin. Interaction: - Hover over a county to view a tooltip with details (county name, state, vote counts, percentages, winner). - Clicking a county zooms in and displays its data in a side panel. Design: - The map fills the screen and uses an Albers USA projection. - The color scheme is a blue/red diverging palette. - Opacity encodes the margin of victory, with darker colors indicating a larger margin. What is the primary message? The primary message is the geographic distribution of the 2012 US presidential election results by county, highlighting the winning candidate and the margin of victory in each county. What is the visualisation type? Choropleth map. What does "group" in the data stand for? What is the winner's margin? The data uses PCT_WNR as winner's percentage, which is the winner's vote share, not the margin. Process the "Files" section: The section starts with 'README.md' but the content of README.md is not included in the block. For "elpo12p010g.topojson", write an itemized list of the five most important properties. Use a JSON syntax. For example, the output should have the form - {"name": "...", "description": "...", ...} - ... where each dash is one item. Make sure the list is short (about five items) and each property is an important one for data visualization. Do not write anything before the list, and do not include any extra text.- {"name": "geometry", "description": "County-level polygon shapes defining the geographic boundaries for each electoral unit in the USA."} - {"name": "WINNER", "description": "Categorical result of the 2012 presidential election in each county (e.g., "Obama" or "Romney")."} - {"name": "PCT_WNR", "description": "Percentage of votes won by the winning candidate in each county, determining the color scale."} - {"name": "OBAMA", "description": "Total number of votes received by Barack Obama in each county."} - {"name": "ROMNEY", "description": "Total number of votes received by Mitt Romney in each county."}

AAlan McConchie
83% match
Loading thumbnail…

USA 2012 presidential election (slow AF version)

This block maps the 2012 U.S. presidential election results by county, coloring each polygon based on the winning candidate (Obama or Romney) and shading by margin of victory. The SVG rendering uses a TopoJSON file of county boundaries with embedded vote counts and percentages, and likely animates the choropleth with a slow transition effect — hence the "slow AF version" title. The map emphasizes the geographic distribution of votes, with counties colored by winner and the intensity of the color representing the margin. The data includes per-county vote tallies for Obama, Romney, and others, plus percentage and winner fields, rendered as an interactive SVG visualization. It is built with blockbuilder.org, forked from almccon's original block.# USA 2012 presidential election (slow AF version) An SVG choropleth map of U.S. counties colored by the 2012 presidential election results. Each county polygon is shaded based on the winning candidate (Obama or Romney) and the margin of victory, with darker shades representing larger winning percentages. County-level data includes vote counts, percentages, and winner for the 2012 election. The map displays all U.S. counties as interactive SVG paths, colored by the winning candidate's share of the vote. The title hints at a deliberately slow animation or transition when changing between states or rendering the visualization. The visualization uses TopoJSON data for county boundaries and was built with Blockbuilder.org, forked from almccon's original block. **Rendering:** SVG **Data source:** [gist](https://gist.github.com/almccon/cb30a0f6bdfa2aa5b15f8022b82bc8b1) **Author:** almccon **Visualization Type:** Choropleth map **Code:** <embed src="..."> (or provide link)Here is a concise description for the gallery: --- **USA 2012 Presidential Election (Slow AF Version)** This choropleth map visualizes the 2012 U.S. presidential election results at the county level. Each county is colored by the winning candidate (Obama or Romney), with color intensity reflecting the winner's percentage of the vote. The map is rendered as an SVG using a TopoJSON dataset that includes per-county vote counts and percentages. The "slow AF" title humorously signals that the visualization is a straightforward, unanimated rendering, focusing purely on the geographic distribution of the vote. **Source:** gist · **Author:** almccon · **Rendering:** SVG

AAlan McConchie
81% match