Group Project Bioinformatics
This interactive D3.js map visualizes the geographic distribution of White House petition signatures across US states. Users click a state to zoom in and display its exact signature count next to the state abbreviation. A linear color scale applies a logarithmic transformation to the signature data, mapping darker green shades to higher counts. The visualization uses D3’s `d3.geo.albersUsa` projection, `d3.geo.path` for rendering SVG state boundaries, and animated transitions to scale and translate the map on click.
AI-generated descriptionhttps://gist.github.com/4544529 (demo) was my first d3 adventure, where I scraped signatures from a White House petition and showed them as a pie chart.
Here, I show them as a US heat map (based on one of Mike Bostock's map demos). You can click on a state, and see how many signatures came from it.
Darker color means more signatures, but since the numbers range from a few dozens to >4500, the scale is logarithmic.
I don't know yet how to use log() interpolators (I promise to learn), so I just did it quick and dirty with linear() and masking tape.
forked from <a href='http://bl.ocks.org/thedod/'>thedod</a>'s block: <a href='http://bl.ocks.org/thedod/4548858'>Clickable US heat-map of petition signature count</a>