# Classic chart X axis Visible property

**URL:** <https://forum.inductiveautomation.com/t/classic-chart-x-axis-visible-property/49288>\
**Category:** Ignition\
**Created:** [July 28, 2021, 8:58am UTC](https://forum.inductiveautomation.com/t/classic-chart-x-axis-visible-property/49288 "2021-07-28T08:58:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 28, 2021, 12:25pm UTC](https://forum.inductiveautomation.com/t/classic-chart-x-axis-visible-property/49288/2 "2021-07-28T12:25:48Z")

</div>

I’m not sure this code would hide both axes, as `getDomainAxis()` returns the Axis with an index of 0.

You can use getDomainAxis() with an index parameter to get a specific axis.

```auto
event.source.parent.parent.getComponent('CTN_Charts').getComponent('Chart).getChart().getXYPlot().getDomainAxis(1).setVisibile(0)

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/classic-chart-x-axis-visible-property/49288)._
