Black Lives Matter. Please consider donating to Black Girls Code today.

Graph Reset Axes API


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.

Vijay Thapak

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