tomgp
The idea is to have an SVG rectangle constructed based on a pair of D3 scales. CLick and drag your mouse (etc.) over it it reports values derived from the scales.
Modified http://d3js.org/d3.v3.min.js to a secure url
https://d3js.org/d3.v3.min.js