Arction margin/axis title calculations

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Arction_LasseP

cwodarczyk82
Posts: 43
Joined: Mon Oct 19, 2015 2:50 am

Arction margin/axis title calculations

Post by cwodarczyk82 » Fri Jan 15, 2016 9:31 pm

I am currently noticing a visual issue with the tick marks overlapping the y axis title... I have checked the code to see that AutoAdjustMargins is enabled to true, but this is the view I sometimes see:
YAxisTitle.PNG
YAxisTitle.PNG (7.85 KiB) Viewed 4886 times
However, it isn't happening all the time, sometimes it looks fine:
YAxisTitleGood1.png
YAxisTitleGood1.png (7.57 KiB) Viewed 4886 times
I noticed that the items appear ok when the top item is larger, i.e, it looks like left aligned or something based on the top tick item, and ignores the rest of the items? Or maybe I am just seeing things... is there any way to correct this, or is something else at play here?

Thanks
--Chris

Here are some more examples that make me think it is something with alignment at the top:
YAxisTitle2.PNG
YAxisTitle2.PNG (7.34 KiB) Viewed 4886 times

cwodarczyk82
Posts: 43
Joined: Mon Oct 19, 2015 2:50 am

Re: Arction margin/axis title calculations

Post by cwodarczyk82 » Fri Jan 15, 2016 9:33 pm

I will also mention I am using CustomTicks here, not auto formatted labels or MajorDivs....

cwodarczyk82
Posts: 43
Joined: Mon Oct 19, 2015 2:50 am

Re: Arction margin/axis title calculations

Post by cwodarczyk82 » Mon Jan 18, 2016 1:41 am

Hi, in order to fix this for the time being, I just check all the tick marks, and fix any of them are not the first/last label, and they have a fractional part, I force all labels to be formatted with 1 decimal point... this seems to work fine now:
FixedMarks.PNG
FixedMarks.PNG (10.43 KiB) Viewed 4881 times