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: /lgersman/5311083. Forgive the horrid code -- I might clean this up later.
forked from mbostock's block: Scatterplot
https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js