Graph Reset Axes API

Hi,

I want Reset Axis functionality (which is in Modebar-Reset Axis button) using my custom button. Is there any expose API, using that I can reset my graph(x,y and y2) axises.

I am using Plotly.js with Angular 5. So, I do not want to access Reset Axis DOM from Modebar and trigger click on that.

Regards,
Vijay Thapak

We don’t officially expose it, but we can try import this source file directly in your app.