# 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:** 6

<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:05pm UTC](https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437/6 "2023-10-13T13:05:35Z")

</div>

Something like your script below @justinedwards.jle, from [this post](https://forum.inductiveautomation.com/t/how-to-change-color-of-timestamp-and-line-of-x-trace-in-chart/80416) could likely be tweaked to get specific results:

```auto
# Written for the configureChart extension function 
#def configureChart(self, chart):
	from java.text import SimpleDateFormat
	from org.jfree.chart.axis import DateAxis
	pureDateFormat = SimpleDateFormat("")
	pureTimeFormat = SimpleDateFormat("")			
	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)

```

---

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