Implements constrained zooming of an image constructed from a data-driven ImageData object placed onto an HTML5 Canvas while giving the marginal distributions of the underlying data. Borrows heavily from https://gist.github.com/mbostock/3074470 and https://gist.github.com/tommct/8049508.
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js