Panel.MarginLeft Issue
Posted: Wed Oct 07, 2009 5:16 am
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).
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