Page 1 of 1

ViewXY and margins

Posted: Wed May 07, 2014 7:12 pm
by greggorob64
Im attempting to use multiple Y axis overlaid on top of each other. To get the graph to look reasonable, I know i'm going to have to do two things:

1) Add a position offset to each Y axis beyond the first in order to offset them
2) Change the location of the ViewXY so that the axis and graph area line up nicely

During step 2, i am attempting to set margins on my graph area. However, the 'left' is not getting set to the value i want it to be (lets say 200).

In the following code snippet, b.Left does not have 300, which is what i set it to.

What am I missing?

Image

Re: ViewXY and margins

Posted: Wed May 07, 2014 7:32 pm
by ArctionPasi
Are you using v.5 or v.6? V.6 has automatic layout options and margins enabled by default. Set chart.ViewXY.AxisLayout.AutoAdjustMargins = false. Then the Margins settings will apply, and you should get same values from GetMarginsRect() call.

Re: ViewXY and margins

Posted: Wed May 07, 2014 7:49 pm
by greggorob64
I'm downloading V6.0 right now, i'll let you know, thanks!

Re: ViewXY and margins

Posted: Wed May 07, 2014 8:48 pm
by greggorob64
Thanks, the upgrade did the trick! I can clean up a lot of the messing with Axis now that this is in place.

It might be worth noting that things like my axis positioning got pretty messed up, as well as my margins; its kind of a breaking change.