Relative time on x axis independent of used language

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

Igor
Posts: 67
Joined: Mon Sep 28, 2015 1:14 pm

Relative time on x axis independent of used language

Post by Igor » Tue Oct 25, 2016 7:45 am

hi,

my chart uses 2 x-axes. One axis is hidden and the other axis has static range which shows relative time.

The x-axis config:
xAxis.AutoFormatLabels = true;
xAxis.ValueType = AxisValueType.Time;

In the german format the axis range starts with zero hour and count up as expected.
# range of 60 sec
1_German_60s.png
1_German_60s.png (26.04 KiB) Viewed 6356 times
# range above 60 sec
2_German_61s.png
2_German_61s.png (26.6 KiB) Viewed 6356 times
In english format the range starts with 12.
# range above of 60 sec
4_English_61s.png
4_English_61s.png (25.86 KiB) Viewed 6356 times
Is it possible to start with zero hour independent of used language?

thank you very much
Igor

User avatar
ArctionPasi
Posts: 1366
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: Relative time on x axis independent of used language

Post by ArctionPasi » Tue Oct 25, 2016 3:17 pm

Hello

Please use set axis.AutoFormatLabels = False, and use axis.FormatValueLabel event handler to show it in the format you prefer.
LightningChart Support Team, PT