![Smile :)](./images/smilies/icon_e_smile.gif)
How to format X axis labels in datetime format?
Moderator: Queue Moderators
-
- Posts: 16
- Joined: Tue Mar 26, 2013 11:01 pm
How to format X axis labels in datetime format?
How do I get the X axis labels rendering in format like 2/5/2012 12:15:34.5543?
![Smile :)](./images/smilies/icon_e_smile.gif)
![Smile :)](./images/smilies/icon_e_smile.gif)
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: How to format X axis labels in datetime format?
Set
Set all data points X values and X axis ranges in seconds.
The second decimals are limited to 2. In LightningChart Ultimate, it’s not limited.
Code: Select all
XAxis.AutoFormatLabels = false;
XAxis.LabelsTimeFormat =”dd/MM/yyyy HH:mm:ss.ff”;
Code: Select all
double X = TimeSpan.FromTicks(new DateTime(2013, 3, 27, 05, 02, 10).Ticks).TotalSeconds;
LightningChart Support Team, PT