# Graph Reset Axes API

**URL:** https://community.plotly.com/t/graph-reset-axes-api/8811
**Category:** plotly.js
**Created:** [March 7, 2018, 6:56am UTC](https://community.plotly.com/t/graph-reset-axes-api/8811 "2018-03-07T06:56:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![VijayThapak](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/vijaythapak/32/2736_2.png) [@VijayThapak](https://community.plotly.com/u/VijayThapak)
#### Post date: [March 7, 2018, 6:56am UTC](https://community.plotly.com/t/graph-reset-axes-api/8811/1 "2018-03-07T06:56:26Z")

</div>

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

---

<div class="post-metadata">

### Author: ![etienne](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/etienne/32/17_2.png) [@etienne](https://community.plotly.com/u/etienne)
#### Post date: [March 7, 2018, 1:56pm UTC](https://community.plotly.com/t/graph-reset-axes-api/8811/2 "2018-03-07T13:56:10Z")

</div>

We don’t officially expose it, but we can try import this source [file](https://github.com/plotly/plotly.js/blob/master/src/components/modebar/modebar.js) directly in your app.
