Multiple legend based on custom y axis

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
Nitin
Newbie
Newbie
Posts: 52
Joined: Fri Jun 30, 2006 12:00 am

Multiple legend based on custom y axis

Post by Nitin » Fri Aug 28, 2009 8:20 am

Hi,
Is it possible to add multiple legends based on the number of series and number of custom y axis?
Please look at the image below -
MultipleLagendWithCustom ver axis.PNG
MultipleLagendWithCustom ver axis.PNG (12.43 KiB) Viewed 4930 times
In that image i have 10 series with 10 custom y axis of equal size. So i have 10 lagend control each showing the name of the series and high and low value just below the series name.Between each legend there is a separator.
One more example - suppose i have 10 series but have 5 custom axis each axis having 2 series each, then in that case i will show 5 lagends each legend will have information about the 2 serieses. The size of the legend also should be matched with the size of the custom y axis.
I have gone through the Multiple Legend example but still confused. I am new in c# coding so need help in these things.
Thanks for your help in advance.

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Multiple legend based on custom y axis

Post by Narcís » Fri Aug 28, 2009 10:33 am

Hi Nitin,

The easiest way I can think of to achieve that is using Rectangle tools. You'll find a simple example of its usage at All Features\Welcome !\Tools\Rectangle Tool in the features demo available at TeeChart's program group.
Best Regards,
Narcís Calvet / 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

Nitin
Newbie
Newbie
Posts: 52
Joined: Fri Jun 30, 2006 12:00 am

Re: Multiple legend based on custom y axis

Post by Nitin » Fri Aug 28, 2009 12:51 pm

But is it possible to add other control like checkbox or button inside the Rectangle tool??

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Multiple legend based on custom y axis

Post by Narcís » Fri Aug 28, 2009 1:10 pm

Hi Nitin,

I'm afraid not. In that case multiple legends is the way to go. You can make a loop through all chart series and create a legend for each one setting legend's custom position based on each series custom axis positions.

Hope this helps!
Best Regards,
Narcís Calvet / 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