# Easy Chart X-Axis Labels on Top

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-x-axis-labels-on-top/46277>\
**Category:** Ignition\
**Created:** [May 3, 2021, 5:36pm UTC](https://forum.inductiveautomation.com/t/easy-chart-x-axis-labels-on-top/46277 "2021-05-03T17:36:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![larryjones](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/larryjones/32/4102_2.png) [@larryjones](https://forum.inductiveautomation.com/u/larryjones)\
**Post date:** [May 3, 2021, 5:36pm UTC](https://forum.inductiveautomation.com/t/easy-chart-x-axis-labels-on-top/46277/1 "2021-05-03T17:36:04Z")

</div>

Is there a way to configure the Easy Chart to show the X-axis labels (timestamps) across the top of the plot instead of the bottom?

---

<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:** [May 3, 2021, 6:04pm UTC](https://forum.inductiveautomation.com/t/easy-chart-x-axis-labels-on-top/46277/2 "2021-05-03T18:04:01Z")

</div>

In the configure chart event you can use:

```auto
from org.jfree.chart.axis import AxisLocation

chart.getPlot().setDomainAxisLocation(AxisLocation.TOP_OR_LEFT)

```

This moves the entire Axis, so tick marks and any labels will also move, if you want to only move the timestamps associated with the major tick’s that’s a bit more complicated.

---

<div class="post-metadata">

**Author:** ![larryjones](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/larryjones/32/4102_2.png) [@larryjones](https://forum.inductiveautomation.com/u/larryjones)\
**Post date:** [May 3, 2021, 6:30pm UTC](https://forum.inductiveautomation.com/t/easy-chart-x-axis-labels-on-top/46277/3 "2021-05-03T18:30:45Z")

</div>

Thank you, lrose.
