# Vision easy chart X-trace date format in milliseconds

**URL:** <https://forum.inductiveautomation.com/t/vision-easy-chart-x-trace-date-format-in-milliseconds/99933>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [December 17, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/vision-easy-chart-x-trace-date-format-in-milliseconds/99933 "2024-12-17T15:43:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maxim\_de\_vries](https://avatars.discourse-cdn.com/v4/letter/m/ba9def/32.png) [@maxim\_de\_vries](https://forum.inductiveautomation.com/u/maxim_de_vries)\
**Post date:** [December 17, 2024, 3:43pm UTC](https://forum.inductiveautomation.com/t/vision-easy-chart-x-trace-date-format-in-milliseconds/99933/1 "2024-12-17T15:43:55Z")

</div>

Is it possible to get the time format in the x-trace with milliseconds in a vision easy chart? i dont see an option like in perspective to get this done. and if i use the selected x-value and format that to show milliseconds it rounds it down to the closest second:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/e/ae212f825fd419f8a3164f23fc926e94746d0574.png)

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 17, 2024, 4:15pm UTC](https://forum.inductiveautomation.com/t/vision-easy-chart-x-trace-date-format-in-milliseconds/99933/2 "2024-12-17T16:15:31Z")

</div>

Limitation of the X-Trace implementation in IA's Vision Charts (classic chart, too). I re-implemented X-Trace completely in my alternative versions. (The [NoteChart](https://inductiveautomation.com/moduleshowcase/module/automation-professionals-llc-notechart) 3rd party module.) You can get the milliseconds to show up on NoteChart and EasyNoteChart.

---

<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 21, 2024, 4:53am UTC](https://forum.inductiveautomation.com/t/vision-easy-chart-x-trace-date-format-in-milliseconds/99933/3 "2024-12-21T04:53:06Z")

</div>

I developed this [confiureChart extension function script](https://forum.inductiveautomation.com/t/time-format-on-easy-chart-x-axis-and-x-trace/80437/6) some time ago for modifying the date and time formats of that label:

```python
#def configureChart(self, chart):
	from java.text import SimpleDateFormat
	from org.jfree.chart.axis import DateAxis
	
	# https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
	pureDateFormat = SimpleDateFormat("yyyy/MM/dd")
	
	# The capital S is for millisecond format
	pureTimeFormat = SimpleDateFormat("h:mm:S a")
	dateAxis = DateAxis()	
	plot = chart.plot
	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)

```

...but you get what you pay for; this approach won't be nearly as reliable as the NoteChart's implementaion.
