PoliticalModeling.com: The Dynamic District Mapper

This is a fun way to visualize political or other districts, and use and compare datasets. Data may be loaded in one of two ways:
  1. The code may be called with url flags:
    politicalmodeling.com/mapper/?bfile=[boundfile.js]?dfile=[datafile.js]
    The former is a javascript file which defines a dictionary called "map_bounds", each of which is an array of arrays lat/lng pairs (allowing for multi-polygons). The latter is a more complicated .js file containing a set of data arrays.

  2. In the absense of a flag, there will be a popup window to allow the same.
Each rectangular box is a dataset, including historical results, demographic or census data, or other information. Drag to the empty recepticle under the map to see a color map of the data. Click on voting districts for more details. Drag to the x- and y- axis of the scatter plot to compare two datasets district by district.

You can also create custom data by combining your datasets using standard arithmetic operations ("+","-","x","/"), or by merging datasets (which averages the values if they are defined in two or more datasets). The resulting CUSTOM may then be dragged and dropped like ordinary data.