Demo: Comparing Types of Campaign Money by State

From Data-gov Wiki

Jump to: navigation, search

Infobox (stable demo) edit with form
  • name: Comparing Types of Campaign Money by State

live demo here


Facts about this Demonstration

Live Demo(s)
Video Demo(s) Data source(s)
Other Data source(s)
Technology Used
Related SPARQL
Related Demo(s)

How to use

Pick two variables of the six provided to compare. You can do this by:

  • Using the pull-out lists on the X or Y axis of the scatterplot to the left.
  • Clicking on the appropriate cell in the correlation matrix.

  • On the left is a scatterplot of your chosen variables. The amount of money for one variable is the Y axis, the amount of money for the other variable is the X axis. Each point represents a state.
  • On the top-right are two maps, one per variable. The darker a state is, the higher the quantity of money.
  • In the middle is a gauge showing the correlation between the two variables (1 - strong positive correlation; -1 - strong negative correlation; 0 - no correlation)
  • On the bottom-right is a table showing the correlation between every pair of variables.
Please note that this demo currently does not work properly in Internet Explorer.

Interesting Observations

Disbursements and receipts are highly correlated within the same party (e.g. Democratic receipts and Democratic disbursements), and both variables are pretty strongly correlated cross-party (e.g. Republican receipts and Democratic receipts). Loans do not seem to have a strong correlation with other variables or across parties.

While state population is not included in this demo, that, too seems to related pretty strongly to disbursements and receipts.

Technology Highlights

This demo uses the State Variable Comparison Javascript API to allow comparison of the various campaign money variables.

It creates a Google datatable via a SPARQL query and then passes the table on to the API for processing.

Dataset 10011 is used to connect state abbreviations to state names.

Personal tools
internal pages