Legend items alignment

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Jakob
Newbie
Newbie
Posts: 13
Joined: Fri Dec 05, 2003 5:00 am

Legend items alignment

Post by Jakob » Fri Feb 27, 2004 9:03 am

Hi!

If I set the Legend position to top, the items shown in the legend
becomes horizontally aligned. Hoe do I get them to be vertically
aligned (as they are when they are placed left or right of the chart)?

Regards
/Jakob

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Post by Pep » Fri Feb 27, 2004 9:53 am

Hi Jakob,

I think the only way around this is to set the Legend position to a custom position and increase the Top Margin, something like :

Code: Select all

tChart1.Header.Visible = false;
tChart1.Legend.CustomPosition = true;
tChart1.Legend.Top = 5;
tChart1.Legend.Left = tChart1.Width/2;
tChart1.Panel.MarginTop = 30;

Post Reply