Panel.MarginLeft Issue

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
asupriya
Advanced
Posts: 179
Joined: Mon Dec 01, 2008 12:00 am

Panel.MarginLeft Issue

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
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Re: Panel.MarginLeft Issue

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,
Best Regards,
Sandra Pazos / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply