Group Project Bioinformaticsnew
This example visualizes the geographic distribution of White House petition signatures as a choropleth heat map of the United States. Built with D3 v3 and rendered as SVG with animation, the map lets users click any state to view its signature count. Color intensity encodes the number of signatures, using a logarithmic scale to handle values that range from a few dozen to over 4,500; the scale is implemented with a linear interpolator as a stand-in, as noted by the author. The data is loaded from UFO_color.csv and joined to state shapes, with the visualization drawing on Mike Bostock's map demo and forked from thedod's clickable US heat-map. The project demonstrates a quick-and-dirty approach to choropleth mapping in d3, with interactivity and animation for a compelling presentation of petition signature distributions across the United States.
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>
forked from <a href='http://bl.ocks.org/Craftbd/'>Craftbd</a>'s block: <a href='http://bl.ocks.org/Craftbd/7af9830ee360cf7103e0f71571d8cfb8'>Group Project Bioinformatics</a>
forked from <a href='http://bl.ocks.org/rubin2ma/'>rubin2ma</a>'s block: <a href='http://bl.ocks.org/rubin2ma/eca7ad72e037a2b879582c3c509350e8'>Group Project Bioinformatics</a>