Margins not respected graph container is a certain size

A forum dedicated to WinForms version of LightningChart Ultimate.

Moderator: Arction_LasseP

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Margins not respected graph container is a certain size

Post by greggorob64 » Wed Jun 11, 2014 8:10 pm

In the screenshots below, i set the left margin from 0 to 285. When the container is small, the margins aren't respected. When i make the container large before the margin change, it works just fine.

When i resize the window (via mouse) from big->small, or small->big, it doesn't modify the margins on the fly either. I'll attach

[*]small container before margin
[*]small container after margin
[*]big container before margin
[*]big container after margin.

What can i do to eliminate this discrepancy?

[*]Container is 660px. tile is small and margins set to 0. I will maximize this tile, and will set the margins to 285
Image

[*] Container maximized. The chart is NOT respecting my specified margin
Image

[*] Container 930px. Chart currently has 0 margins. I will maximize the tile and set it to 285 and it will be respected
Image

Image

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: Margins not respected graph container is a certain size

Post by ArctionTero » Thu Jun 12, 2014 6:38 am

The size of container should have no effect on how the margins are used. ViewXY.AxisLayout.AutoAdjustMargins have strong influence.

We made a MDI test where margin was adjusted at double click and on window Resize events based on its size.

The margins were updated nicely.

Can you provide us a minimum sample application by which we could reproduce this?
LightningChart Support Team, TK

greggorob64
Posts: 183
Joined: Tue Mar 18, 2014 2:55 pm

Re: Margins not respected graph container is a certain size

Post by greggorob64 » Thu Jun 12, 2014 3:10 pm

I have auto-adjust margins set to false.

It very much seems like there' a minimum chart area size relative to control width that's being forced on it. I'll try to take some time to generate a sample.