This behavior automatically creates event listeners to handle zooming and panning gestures on a container element. Both mouse and touch events are supported.21-12-2018
myDiv.on('plotly_relayout', function(eventdata){ alert( 'ZOOM!' + '\n\n' + 'Event data:' + '\n' + JSON.stringify(eventdata) + '\n\n' + 'x-axis start:' + eventdata['xaxis.range[0]'] + '\n' + 'x-axis end:' + eventdata['xaxis.range[1]'] ); });03-06-2019
Binding to Zoom Events04-06-2019