# Reporting Module: Time Series X-Axis Formatting

**URL:** <https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811>\
**Category:** Ignition\
**Created:** [February 22, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811 "2019-02-22T17:15:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew.Wells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.wells/32/6269_2.png) [@Andrew.Wells](https://forum.inductiveautomation.com/u/Andrew.Wells)\
**Post date:** [February 22, 2019, 5:15pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811/1 "2019-02-22T17:15:57Z")

</div>

Continuing the discussion from [Reporting Module: Chart X-Axis Formatting](http://forum.inductiveautomation.com/t/reporting-module-chart-x-axis-formatting/10706):

I have the same concern/requirement as jimmyloo did in this previous post. I have seen quite a few requests for help on this topic in my search of the forums, but I haven’t seen much response. Is this an issue that is elephant in the corner of the room, or have people just figured it out on their own and I will have to do the same? Thanks for any help that you may be able to provide.

I need a time series chart to look as posted below, reference from jimmyloo’s post.

![DesiredLook.png](http://forum.inductiveautomation.com/uploads/iatesting/original/2X/1/1552ae9f1ed208783f88f3c48d3a7e7d04ed2a56.png)

---

<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:** [February 22, 2019, 5:22pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811/2 "2019-02-22T17:22:53Z")

</div>

You will need to use the `configureChart` function on the xy chart to override it’s behavior. How to do that is something that we don’t document (because the sky is the limit, and because it’s basically an “off the shelf” component), although there _are_ definitely examples available on the forum. The `chart` object you get in the `configureChart` function is an instance of the [`JFreeChart`](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html) class; their javadoc API reference is your best explanation of what to do.

Without actually writing out the script, but based on previous exploration, you will need to call [`chart.getXYPlot()`](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/JFreeChart.html#getXYPlot--), then from the plot call [`getDomainAxis()`](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/plot/XYPlot.html#getDomainAxis--), then on the axis (which should be a `DateAxis`) call [`setTickUnit(<tickUnit>)`](http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/axis/DateAxis.html#setTickUnit-org.jfree.chart.axis.DateTickUnit-).

---

<div class="post-metadata">

**Author:** ![Andrew.Wells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.wells/32/6269_2.png) [@Andrew.Wells](https://forum.inductiveautomation.com/u/Andrew.Wells)\
**Post date:** [February 22, 2019, 5:36pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811/3 "2019-02-22T17:36:08Z")

</div>

Thank you very much for your prompt response. I will chase down those leads. I should be able to use your information to make more educated searches.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [February 22, 2019, 9:17pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811/4 "2019-02-22T21:17:42Z")

</div>

Have a look at [this topic](http://forum.inductiveautomation.com/t/classic-chart-x-axis-questions/7763/7). There is a little code sample that may help you.

---

<div class="post-metadata">

**Author:** ![Andrew.Wells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/andrew.wells/32/6269_2.png) [@Andrew.Wells](https://forum.inductiveautomation.com/u/Andrew.Wells)\
**Post date:** [February 25, 2019, 2:29pm UTC](https://forum.inductiveautomation.com/t/reporting-module-time-series-x-axis-formatting/22811/5 "2019-02-25T14:29:33Z")

</div>

Thank you, I will check it out.
