Page 1 of 1

How to format X axis labels in datetime format?

Posted: Tue Mar 26, 2013 11:06 pm
by SupportArchives
How do I get the X axis labels rendering in format like 2/5/2012 12:15:34.5543?
:)

Re: How to format X axis labels in datetime format?

Posted: Wed Mar 27, 2013 3:09 pm
by ArctionPasi
Set

Code: Select all

XAxis.AutoFormatLabels = false; 
XAxis.LabelsTimeFormat =”dd/MM/yyyy HH:mm:ss.ff”;
Set all data points X values and X axis ranges in seconds.

Code: Select all

double X = TimeSpan.FromTicks(new DateTime(2013, 3, 27, 05, 02, 10).Ticks).TotalSeconds;
The second decimals are limited to 2. In LightningChart Ultimate, it’s not limited.