LC6: Strange behaviour with AutoAdjustMargins=false

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
frank
Posts: 51
Joined: Tue Mar 25, 2014 9:04 am

LC6: Strange behaviour with AutoAdjustMargins=false

Post by frank » Fri May 09, 2014 11:36 am

Hi,

I have a strange behaviour with the chart.ViewXY.AxisLayout.AutoAdjustMargins-Settings. In my LC5-code I set the margins programatically depending on some parameters defined for the chart layout. After upgrading to LC6, if I set the chart.ViewXY.AxisLayout.AutoAdjustMargins = true; the beginning of multiple charts in one grid aren't equally alligned. If I set them to false, to get the same behaviour as in LC5, all axes disappear, as if the margins aren't set correctly.
chart.ViewXY.AxisLayout.AutoAdjustMargins = false;
chart.ViewXY.AxisLayout.AutoAdjustMargins = false;
AutoAdjustMargins_false.png (45.77 KiB) Viewed 7459 times
I hope the demo helps to reproduce the issue.
Attachments
WpfApplication1.zip
Demo solution
(39.1 KiB) Downloaded 703 times
chart.ViewXY.AxisLayout.AutoAdjustMargins = true;
chart.ViewXY.AxisLayout.AutoAdjustMargins = true;
AutoAdjustMargins_true.png (95.93 KiB) Viewed 7459 times

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

Re: LC6: Strange behaviour with AutoAdjustMargins=false

Post by ArctionPasi » Fri May 09, 2014 1:31 pm

Hi, it is a bug and will be fixed soon.

You can go around the problem by Moving the

Code: Select all

chart.ChartRenderOptions.DeviceType = RendererDeviceType.HardwareOnly;
row after SetMargins row, then it works.
LightningChart Support Team, PT

Post Reply