AxisYTitle.DistanceToAxis doesn't seem to work

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

AxisYTitle.DistanceToAxis doesn't seem to work

Post by vrmitch » Wed Aug 19, 2015 2:59 pm

Hello,

In our implementation of LCU, we have just about everything automatic turned off, including YAxisAutoPlacement (we support thumbs to resize the chart within the canvas). I've seen a few examples where you explain how to set the DistanceToAxis on AxisY.Title, but it doesn't seem to be respected. We are using custom ticks, specifically two sets of them on two separate Y axes. The first AxisY has the title.

So far I've tried calculating the DistanceToAxis based loosely on http://www.arction.com/forum/viewtopic. ... itle#p2221, and I've tried fixed values. Neither appears to be respected.

The issue is most noticeable when panning vertically with some axis value labels longer than others. It looks like the title jumps left and right, sometimes over the values.

Any idea what would be causing that?

Thanks,

Mitch

User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Re: AxisYTitle.DistanceToAxis doesn't seem to work

Post by vrmitch » Wed Aug 19, 2015 3:34 pm

I'm uploading a sandbox that demonstrates the problem.
Attachments
LightningChartCustomTicks.zip
(10.7 KiB) Downloaded 462 times

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

Re: AxisYTitle.DistanceToAxis doesn't seem to work

Post by ArctionPasi » Thu Aug 20, 2015 2:26 pm

Can you please try setting these Off:

m_chart.ViewXY.AxisLayout.YAxisTitleAutoPlacement = false;
m_chart.ViewXY.AxisLayout.XAxisTitleAutoPlacement = false;

then axis.Title.DistanceToAxis really should apply.
LightningChart Support Team, PT

User avatar
vrmitch
Posts: 21
Joined: Thu Oct 09, 2014 6:19 pm

Re: AxisYTitle.DistanceToAxis doesn't seem to work

Post by vrmitch » Thu Aug 20, 2015 8:01 pm

That was it - thanks much!

Post Reply