edit stat_visualization

partial code from http://bl.ocks.org/mbostock/3048450