Skip to main content
100%

Demers Cartogram

✓ Published0🌍 Public
SSpaceActuary
Last edited Apr 26, 2016
Created on Mar 18, 2016

This pseudo-demers cartogram visualizes the 2012 U.S. presidential election results by representing each state as a square whose size corresponds to its electoral votes. The squares are positioned near their geographic origins, and their colors indicate whether the state voted Democratic (steel blue) or Republican (crimson). The visualization offers three layout modes—McCann, Demers, and Dorling—and an optional map overlay. Implemented with d3.v3, it uses d3.geo.albersUsa for projection, d3.layout.force for the layout simulation, and d3.geo.path for rendering state boundaries, with data from data.csv.

AI-generated description

This is not a true Demers cartogram; it lacks links between adjacent features. Instead of trying to preserve connectedness, this pseudo-cartogram tries to preserve locality, putting each square as close as possible to its origin without overlapping.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/4055889'>Pseudo-Demers Cartogram</a>

forked from <a href='http://bl.ocks.org/SpaceActuary/'>SpaceActuary</a>'s block: <a href='http://bl.ocks.org/SpaceActuary/9a92db9794c21d576087'>Pseudo-Demers Cartogram</a>

gpl-3.0 Licensed

Similar vizzes