Axis labels

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

Posts: 27
Joined: Thu Sep 26, 2013 1:30 am

Axis labels

Post by minoru » Thu Sep 26, 2013 4:30 am

Code: Select all

m_chart.ViewXY.XAxes[0].SetRange(-6.3, 6.3);
m_chart.ViewXY.XAxes[0].MajorDivCount = 1;
I hope the two labels of "-6.3" and "6.3" to appear.
However, the label of "0.0" has been displayed.

Please tell me what to do.



Re: Axis labels

Post by ArctionJari » Thu Sep 26, 2013 9:06 am

Hi Minoru.

Do you mean you want to display only -6.3 and 6.3? If so, you can use custom axis ticks by setting AxisX.CustomTicksEnabled to true and adding two items (-6.3 and 6.3) to AxisX.CustomTicks list.