How to transpose X and Y axis in ViewXY?

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
spitzna
Posts: 29
Joined: Mon Jul 04, 2016 2:30 pm

How to transpose X and Y axis in ViewXY?

Post by spitzna » Mon Jul 04, 2016 3:05 pm

Hi,

I have to renew an older measurement application and there is something i doesn't found.

Is there a way to transpose the X and Y axes at runtime?

I've found an entry in the forum about "Swap X and Y axes", but it's not that what I'am searching for, because i can't rotate the hole Chart area including axes.

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

Re: How to transpose X and Y axis in ViewXY?

Post by ArctionPasi » Mon Jul 04, 2016 3:36 pm

Hello :)

Using WPF's RenderTransform or LayoutTransform is the way users typically do it.
- Rotate by 90 degrees
- aligning axes to different edges of the chart left -> right and bottom -> top if preferred
- setting axis.Reversed = true based on the preference.

That's pretty much it.
LightningChart Support Team, PT

spitzna
Posts: 29
Joined: Mon Jul 04, 2016 2:30 pm

Re: How to transpose X and Y axis in ViewXY?

Post by spitzna » Tue Jul 05, 2016 9:49 am

Hey,

Many thx. I will try it out.

spitzna
Posts: 29
Joined: Mon Jul 04, 2016 2:30 pm

Re: How to transpose X and Y axis in ViewXY?

Post by spitzna » Tue Jul 05, 2016 3:08 pm

Hi,

After some hours in fighting with property names from Chart. It's now working. 8-)
But for my opinion it's a creepy solution, in case of overriding parent controls OnRenderSizeChanged and using some other tricks.

Post Reply