# Time format on Easy Chart X-axis and X-Trace

**URL:** <https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 13, 2023, 12:16pm UTC](https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437 "2023-10-13T12:16:47Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![Mason\_Stevens](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@Mason\_Stevens](https://forum.inductiveautomation.com/u/Mason_Stevens)\
**Post date:** [October 13, 2023, 1:21pm UTC](https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437/8 "2023-10-13T13:21:08Z")

</div>

@justinedwards.jle pointed me toward a [similar script](https://forum.inductiveautomation.com/t/easy-chart-xtrace-mark-mode-datetime-format/67159/4) that's closer to what you're looking for @LenRem1. Code as follows:

```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)

```

With only "" inside the `SimpleDateFormat` argument (from the first script), the date/time tooltip would be removed. Filling that argument with your desired format should get you there.

---

_[View the full topic](https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437)._
