# Hide Easy Chart X Axis label

**URL:** <https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499>\
**Category:** General Discussion\
**Tags:** vision, ignition81, scripting, python, ignition80\
**Created:** [April 15, 2022, 10:01am UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499 "2022-04-15T10:01:33Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![GOKULAKANNAN\_P](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@GOKULAKANNAN\_P](https://forum.inductiveautomation.com/u/GOKULAKANNAN_P)\
**Post date:** [April 15, 2022, 10:01am UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/1 "2022-04-15T10:01:33Z")

</div>

Hello ,

![Easy chart](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/4/542e08215f52643082c219b5609c8bfd463084f4.png)

I have set Chart mode is manual . And Bind the Date Last 1 Hour . I am Trying to Hide The X Axis Label(Date). because it is Occupied Some places.

Any One Have A Idea Please Provide.

Thanks!.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 15, 2022, 3:45pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/2 "2022-04-15T15:45:55Z")

</div>

I just tried and could hide the whole label but not just the time. It seems it is one object.  
I’m not sure other than putting a box over it to hide it.

I’m thinking this might be possible via scripting, I was looking at the Jfreechart docs but I could not find this in particular.

Maybe @Kevin.Herron or @cmallonee might know if there is another way?

---

<div class="post-metadata">

**Author:** ![schenk](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@schenk](https://forum.inductiveautomation.com/u/schenk)\
**Post date:** [April 16, 2022, 1:23am UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/3 "2022-04-16T01:23:41Z")

</div>

Try putting this into the configureChart Extension Function  
`self.getComponent(0).getComponent(0).getDomainAxis().setDisplayDayInTitle(0)`

---

<div class="post-metadata">

**Author:** ![GOKULAKANNAN\_P](https://avatars.discourse-cdn.com/v4/letter/g/0ea827/32.png) [@GOKULAKANNAN\_P](https://forum.inductiveautomation.com/u/GOKULAKANNAN_P)\
**Post date:** [April 17, 2022, 8:33am UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/4 "2022-04-17T08:33:26Z")

</div>

Thanks @schenk It Is Working 🙂.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 17, 2022, 10:16pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/5 "2022-04-17T22:16:12Z")

</div>

@schenk could you point me in tips to figure that out in future? As reading the documentation didn’t really help me.

---

<div class="post-metadata">

**Author:** ![jespinmartin1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jespinmartin1/32/57175_2.png) [@jespinmartin1](https://forum.inductiveautomation.com/u/jespinmartin1)\
**Post date:** [April 18, 2022, 1:10am UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/6 "2022-04-18T01:10:55Z")

</div>

Not better but shorter

```auto
chart.getPlot().getDomainAxis().setDisplayDayInTitle(False)

```

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 18, 2022, 2:22pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/7 "2022-04-18T14:22:44Z")

</div>

@jespinmartin1 any tips on how to figure this out. I couldnt find it in the docs or by googling setDisplayDayInTitle

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 18, 2022, 2:40pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/8 "2022-04-18T14:40:37Z")

</div>

Most of what is possible is in the [JFreeChart docs](https://www.jfree.org/jfreechart/api/javadoc/), which the Vision module wraps for its charts.

But there are exceptions, where IA extended some of the JFreeChart classes. As in this case:

[AutoTickDisplayDateAxis](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.1/com/inductiveautomation/factorypmi/application/components/chart/AutoTickDisplayDateAxis.html)

In practice, one would print the `type()` of an object that you encounter in your configureChart method so you can find it in the corresponding docs.

---

<div class="post-metadata">

**Author:** ![andrews](https://avatars.discourse-cdn.com/v4/letter/a/898d66/32.png) [@andrews](https://forum.inductiveautomation.com/u/andrews)\
**Post date:** [April 18, 2022, 2:49pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/9 "2022-04-18T14:49:13Z")

</div>

@pturmel And how would I would go about finding that page? lol. I had trouble finding any links to it. Even after you bestowed it upon me.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 18, 2022, 3:00pm UTC](https://forum.inductiveautomation.com/t/hide-easy-chart-x-axis-label/58499/10 "2022-04-18T15:00:04Z")

</div>

This stuff is part of the Module Development SDK. In the online user manual, on the bottom of the left sidebar, is a link to SDK Documentation. In the introduction to the SDK docs, in a right sidebar, are links to the JavaDocs.
