Y-Axis on Right Side

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
User avatar
blakeadkins
Posts: 44
Joined: Tue Feb 25, 2014 7:49 pm

Y-Axis on Right Side

Post by blakeadkins » Fri May 02, 2014 5:32 pm

Is there a way to move the Y-Axis on a ViewXY to the right side? I see there's a YAxisPosition setting, but I'm not sure where to set it.

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

Re: Y-Axis on Right Side

Post by ArctionPasi » Sat May 03, 2014 9:25 pm

Set yAxis.Position = 100 to move it to right edge. Also align the ticks and labels. This is a good example to learn these properties:
Chart with several axes
Chart with several axes
chart_several_axes.jpg (250.29 KiB) Viewed 6636 times
The chart has a lot of properties to tweak the appearance.
LightningChart Support Team, PT

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

Re: Y-Axis on Right Side

Post by ArctionPasi » Wed May 07, 2014 1:40 pm

Now there's automatic axis layouts available in LC v.6.

Just set ViewXY.AxisLayout.YAxisAutoPlacement = LeftThenRight.

Then the second axis will appear aligned to the right edge of the graph, and labels also aligned to the right side.
LightningChart Support Team, PT

Post Reply