chartjs-plugin-zoom icon indicating copy to clipboard operation
chartjs-plugin-zoom copied to clipboard

How to get the pan distance/level

Open samcov opened this issue 3 years ago • 2 comments

I need to control a 2nd chart when I pan & zoom so that they both match.

Zoom is pretty straight forward, but I can't seem to see how to get a pan, x & Y to force the other chart to pan the same.

I hope I'm saying this right, but for zoom, I can do a chart.getZoomLevel(), is there anything similar for panning?

samcov avatar Mar 05 '22 10:03 samcov

I think we could add some "sync" functionality to the api, as this seems to be quite common need.

kurkle avatar Mar 24 '22 06:03 kurkle