This is an example of integrating two visualizations using interactions on one of them. Based on mbostock’s scatterplot and histogram demos, plus lgersman’s selection window code: http://bl.ocks.org/lgersman/5311083. Forgive the horrid code – I might clean this up later.
forked from mbostock‘s block: Scatterplot