All examples By author By category About

bewest

D3 Example: spline, zoom and pan

This example is a mashup of the D3 Spline and Zoom-Pan examples along with Ricardo Marimon's example of X-axis re-scaling by dragging.

source: gist.github.com/1182434

There's still a bug where if you scale an axis once, you can then translate/pan around but if you scale the same axis a second time when you next try and translate/pan the result of the first axis re-scale will re-appear. This bug also appears if you re-scale the axes and then add a new data point.

D3 References:

D3 Tutorials:

External D3 Tutorials

SVG Graphics