Y axis on right label and numbers alignment

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
s_mazyar
Posts: 9
Joined: Sun Nov 21, 2021 10:14 am

Y axis on right label and numbers alignment

Post by s_mazyar » Tue Aug 09, 2022 4:16 am

Hi I have two Y axis. One on left, one on right. When I set chart.ViewXY.AxisLayout.AutoAdjustMargins = false; and give margins
The Label(which is pressure) and numbers of right Y axis goes inside of lighting chart area. How could I force them(label and
Y axis numbers) to go outside of chart area?
Thanks in advance
P.S there is an alignment property but I do not know if it helps, Moreover I do not know what property I should put at the right side
Like for example pressureVerticalScrollBar.Alignment=???
Again thanks in advance

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

Re: Y axis on right label and numbers alignment

Post by ArctionKestutis » Wed Aug 10, 2022 11:11 am

Some of Axis properties require that 'auto' handling would be disabled. This 'auto' could be disabled by AxisLayout.AutoAdjustMargins = False or setting ViewXY.AxisLayout.YAxisAutoPlacement to 'Off'.

After that you could modify YAxis Position, MajorDivTickStyle.Alignment properties. I believe those 2 should help to generate layout you need.

s_mazyar
Posts: 9
Joined: Sun Nov 21, 2021 10:14 am

Re: Y axis on right label and numbers alignment

Post by s_mazyar » Sat Aug 13, 2022 4:35 am

Hi Thank you very much.
Your comment solved my problem completely;

Post Reply