Page 1 of 1

Panel.MarginLeft Issue

Posted: Wed Oct 07, 2009 5:16 am
by 13051032
I have multiple Custom Y axis per chart (all generated at runtime) and I have the tchart1.Panel.MarginLeft is set based on custom axis relative position as shown below. This is creating very large margins after 3 custom Y axis. Until 3 axis, the display is reasonably good (as only a small portion of display is used in margin). after that, the margin grows rapidly occupying most of the displayed graph. The marginunit is set to percentage.

My question is, how can i reliably set chart panel margin such that it shows all custom Y axes available for a given chart (at runtime).

Code: Select all

Dim i as integer = tChart1.Series.count
tChart1.Panel.MarginLeft = ((myFastLine(i - 1).CustomVertAxis.RelativePosition) * (-1)) + 8

Re: Panel.MarginLeft Issue

Posted: Wed Oct 07, 2009 9:08 am
by 10050769
Hello asupriya,


I found a solution posted for Yeray's in vcl that solved your problem putting customAxes automatically. Please see here.

I hope will help.

Thanks,