plotly.js icon indicating copy to clipboard operation
plotly.js copied to clipboard

Add an event for panning and zooming that show live details as the range changes

Open Holyphoenix opened this issue 9 years ago • 7 comments

It would be useful to have an event that is fired any time the range of a chart changes (not just after the pan or zoom is complete). This event could be used to make a second chart scroll or zoom with a first chart.

I want to use it to make a chart with the x-axis scrollable on my page over my other, quite large chart, that has many subplots. I could also see it being useful for things like a dashboard where charts are separated to a point where they cannot just be subplots, but you want live updates to the charts as other charts are changing.

Holyphoenix avatar Oct 12 '17 03:10 Holyphoenix

Good idea, similar to the selecting vs selected events. I imagine it would be very easy to slow the system down unbearably this way (panning & live zooming take shortcuts to adjust the plots much faster than a normal relayout with a changed range) but there are cases where this would work fine, or other things you might want to do with those ranges besides updating other plots.

alexcjohnson avatar Oct 12 '17 21:10 alexcjohnson

cc https://github.com/plotly/plotly.js/issues/145

etpinard avatar Oct 12 '17 21:10 etpinard

Would like the same for rotating 3d plots.

zhihua-chen avatar May 02 '18 22:05 zhihua-chen

How about this PR for gl3d plots?

https://github.com/zhihua-chen/plotly.js/pull/1

zhihua-chen avatar May 03 '18 00:05 zhihua-chen

Any update on this feature request?

suriyaprashath avatar Aug 07 '18 07:08 suriyaprashath

Sorry haven’t gotten around to writing the tests yet. Busy with work...

On Tue, Aug 7, 2018 at 3:59 AM Suriya Prashath [email protected] wrote:

Any update on this feature request?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/plotly/plotly.js/issues/2082#issuecomment-410969208, or mute the thread https://github.com/notifications/unsubscribe-auth/ANDJfkXxTyczv0uDSDziRgrAJqJeG_ogks5uOUjOgaJpZM4P2bJr .

zhihua-chen avatar Aug 07 '18 12:08 zhihua-chen

Adding to v1.48.0

etpinard avatar Apr 12 '19 13:04 etpinard