# Reset Axes in XY classic chart

**URL:** <https://forum.inductiveautomation.com/t/reset-axes-in-xy-classic-chart/52560>\
**Category:** Ignition\
**Created:** [November 1, 2021, 12:15pm UTC](https://forum.inductiveautomation.com/t/reset-axes-in-xy-classic-chart/52560 "2021-11-01T12:15:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [November 1, 2021, 12:15pm UTC](https://forum.inductiveautomation.com/t/reset-axes-in-xy-classic-chart/52560/1 "2021-11-01T12:15:24Z")

</div>

Hi,  
I am using Classic chart in vision. In chart if we right click we have option for **Reset Axes**  
Is there any way to call the Reset axes in script?  
 ![resetaxis](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/b/7b0053d43bb8f545255f4961e02a0c58e50f90b6.png)  
Can any one help me out in this?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 1, 2021, 4:53pm UTC](https://forum.inductiveautomation.com/t/reset-axes-in-xy-classic-chart/52560/2 "2021-11-01T16:53:02Z")

</div>

From scripting, just call `referenceToChartComponent.createChart()`; that’s all the implementation of ‘reset axes’ actually does for the classic chart.

---

<div class="post-metadata">

**Author:** ![prasath.t](https://avatars.discourse-cdn.com/v4/letter/p/898d66/32.png) [@prasath.t](https://forum.inductiveautomation.com/u/prasath.t)\
**Post date:** [November 1, 2021, 5:19pm UTC](https://forum.inductiveautomation.com/t/reset-axes-in-xy-classic-chart/52560/3 "2021-11-01T17:19:21Z")

</div>

> [@paul-griffith](#):
>
> createChart()

Thanks a lot for your help
