TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
-
asupriya
- Advanced
- Posts: 179
- Joined: Mon Dec 01, 2008 12:00 am
Post
by asupriya » 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).
Code: Select all
Dim i as integer = tChart1.Series.count
tChart1.Panel.MarginLeft = ((myFastLine(i - 1).CustomVertAxis.RelativePosition) * (-1)) + 8
-
Sandra
- Site Admin
- Posts: 3132
- Joined: Fri Nov 07, 2008 12:00 am
Post
by Sandra » Wed Oct 07, 2009 9:08 am
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,