I would like to be able to change the time format in a Vision Easy Chart of the xtrace & mark mode labels to something like, yyyy/MM/dd h:mm:ss a z
I can format the time & place it on the value label of the xtrace label but am unable to change the datetime label , while I can't format anything in Mark mode label
So far, I have not figured this problem out, but here is what I've learned so far:
There is an exposed property that can change the crosshair label's date format in an Easy Chart, but the desired setting appears to be defective.
In the Vision Property Editor under Historical Range, there is a property called Date Style:
...but changing the date style this way yields the exact same result as above
Looking through the declared fields for the domain axis, the mdyFormat, mdFormat, and yFormat fields proved to be SimpleDateFormats that seemed to correlate to the date styles, but assigning a properly formatted SimpleDateFormat to these fields had no effect on the crosshair label.
The domain axis does have a dateFormatOverride method that changes the tick mark labels, but this does not effect the crosshair label.
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.
When I get time, I need to test the setDateStyle method on other versions. The date formatting for the YMD setting is clearly an unexpected behavior that needs to be corrected.