# Easy Chart Xtrace & Mark Mode datetime format

**URL:** <https://forum.inductiveautomation.com/t/easy-chart-xtrace-mark-mode-datetime-format/67159>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [December 1, 2022, 5:32pm UTC](https://forum.inductiveautomation.com/t/easy-chart-xtrace-mark-mode-datetime-format/67159 "2022-12-01T17:32:28Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [December 3, 2022, 9:20am UTC](https://forum.inductiveautomation.com/t/easy-chart-xtrace-mark-mode-datetime-format/67159/4 "2022-12-03T09:20:28Z")

</div>

**Update:**  
I developed a work around that produces the desired effect by overriding the AutoTickDisplayDateAxis extension of the DateAxis and subsequently customizing the plot's date and time formats.

Here is the code:

```auto
def configureChart(self, chart):
	from java.text import SimpleDateFormat
	from org.jfree.chart.axis import DateAxis
	pureDateFormat = SimpleDateFormat("yyyy/MM/dd")
	pureTimeFormat = SimpleDateFormat("h:mm:ss a z")			
	dateAxis = DateAxis()
	plot = chart.getPlot()
	plot.setDomainAxis(dateAxis)
	plotField1 = plot.getClass().getDeclaredField('dateFormat')
	plotField2 = plot.getClass().getDeclaredField('timeFormat')
	plotField1.setAccessible(True)
	plotField2.setAccessible(True)
	plotField1.set(plot, pureDateFormat)
	plotField2.set(plot, pureTimeFormat)

```

**Here is the XTrace Mode result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/9/e9e1c9992781dc7b7679a05274a1ca6191f7b33c.png)

**Here is the Mark Mode result:**  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/f/4f81cdc96169527a02f8909e82d2650f1acfdf81.png)

---

_[View the full topic](https://forum.inductiveautomation.com/t/easy-chart-xtrace-mark-mode-datetime-format/67159)._
