Axis labeling when many axes are stacked

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

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

Axis labeling when many axes are stacked

Post by Igor » Mon Jan 09, 2017 10:27 am

Hi,

the Y-Axis labeling is limited, when to many axes are stacked on top of each other in ViewXY.

#Ok when enough space.
2017-01-09_1116.png
2017-01-09_1116.png (6.26 KiB) Viewed 4736 times
#max value label disapear when add an extra axis.
So it is no longer possible to estimate how high the value is.
2017-01-09_1116_001.png
2017-01-09_1116_001.png (10.48 KiB) Viewed 4736 times
Is it possible to force to show allways minimum 2 axis labels, so that the user can always estimate the value of the curve.

thank you very much

ArctionKestutis
Posts: 552
Joined: Mon Mar 14, 2016 9:22 am

Re: Axis labeling when many axes are stacked

Post by ArctionKestutis » Wed Jan 11, 2017 7:43 am

Hi Igor,

You could check if number of major ticks <2 with

Code: Select all

Axes.GetMajorTicks()
And in that case you could add Custom Ticks:

Code: Select all

Axis.CustomTicksEnable=True;
Axis.CustomTicks.Add(new CustomAxisTick(Axis, Minimum, Minimum.ToString(), 5, true, Color.White, CustomTickStyle.Tick));
Axis.CustomTicks.Add(new CustomAxisTick(Axis, Maximum, Maximum.ToString(), 5, true, Color.White, CustomTickStyle.Tick));
All the best,
Kestutis

Post Reply