I know that the goal of statebins is to be ridiculously simplistic, but since waffle from @hrbrmstr, d3-exploder, and @ramnathv experiments are fresh in my mind, I couldn't resist the urge to see if we could leverage the great project stateface in rcstatebin in my fork and branched version. If not in rcstatebin, I know I'm going to use this in R charts or other htmlwidgets.
Instead of the text abbreviation we could use the state shape (probably not a good idea for the geographically ignorant US).
I will make this line accept a renderer function to facilitate this. More generally, as you had indicated earlier, the widget needs to fire a completed rendering event, and also expose d3.selectAll(".cell") since everything hangs off of that.
I know that the goal of statebins is to be ridiculously simplistic, but since
waffle
from @hrbrmstr,d3-exploder
, and @ramnathv experiments are fresh in my mind, I couldn't resist the urge to see if we could leverage the great projectstateface
inrcstatebin
in my fork and branched version. If not inrcstatebin
, I know I'm going to use this inR
charts or otherhtmlwidgets
.Instead of the text abbreviation we could use the state shape (probably not a good idea for the geographically ignorant US).
In the tooltip, we could also show the state shape for additional context.