White House petitions don't have an API yet so I wrote something quick and dirty for a specific petition in reply to a tweet by @PogoWasRight.
This thing scrapes the petition's signatures and produces histograms by state and city as a javascript file called histograms.js
.
This gist contains a snapshot copy of that file (generated when there were ~32K signatures)
This means you can either clone the gist and view index.html
, or simply use Mike Bostock's magic gist viewer.