This example is a mashup of the D3 Zoom-Pan example along with Ricardo Marimon's example of X-axis re-scaling by dragging.
Most of the UI should also work with the touch events generated by a tablet or SmartPhone.
source: gist.github.com/1182434
forked from stepheneb's block: D3 Example: zoom, pan, and axis rescale
Updated missing url https://mbostock.github.com/d3/d3.v3.js to http://d3js.org/d3.v3.min.js
https://mbostock.github.com/d3/d3.v3.js