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
AxisYTitle.DistanceToAxis doesn't seem to work
Moderator: Queue Moderators
Re: AxisYTitle.DistanceToAxis doesn't seem to work
I'm uploading a sandbox that demonstrates the problem.
- Attachments
-
- LightningChartCustomTicks.zip
- (10.7 KiB) Downloaded 462 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: AxisYTitle.DistanceToAxis doesn't seem to work
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.
m_chart.ViewXY.AxisLayout.YAxisTitleAutoPlacement = false;
m_chart.ViewXY.AxisLayout.XAxisTitleAutoPlacement = false;
then axis.Title.DistanceToAxis really should apply.
LightningChart Support Team, PT
Re: AxisYTitle.DistanceToAxis doesn't seem to work
That was it - thanks much!