SeriesGroups in second legend

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
johnk
Newbie
Newbie
Posts: 31
Joined: Thu Jun 23, 2005 4:00 am

SeriesGroups in second legend

Post by johnk » Thu Mar 16, 2006 5:17 am

I just started to use the SeriesGroups and would like to know if there is a way to show the groups in a second legend. What I would like to do is use the second legend to show or hide groups of series. I need it to be in a second legend because I would also like the user to be able to hide or show an individual series with the checkboxes. Also I would like the main legend to only show the series that are in a selected group. Is this possible?

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

Post by Narcís » Thu Mar 16, 2006 4:00 pm

Hi johnk,

You can use an Extra Legend tool as shown at the All Features\Welcome !\Tools\Extra Legend example in the TeeChart's features demo available at its 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

johnk
Newbie
Newbie
Posts: 31
Joined: Thu Jun 23, 2005 4:00 am

Post by johnk » Mon Apr 03, 2006 7:55 pm

Thanks for the reply. I looked at the Extra Legend tool and this is almost what I need. I can't figure out how to populate the extra legend with the name of each series group. The idea is that I would have several groups. For example:

SeriesGroup 1
series1
series2
series3
SeriesGroup 2
series1a
series2a
series3a

etc.

I'd like my main legend with checkboxes to display
"series1"
"series2"
"series3"

and the extra legend with checkboxes displays
"SeriesGroup1"
"SeriesGroup2"

Thanks.

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

Post by Narcís » Tue Apr 04, 2006 10:22 am

Hi johnk,

Then the solution is drawing a custom legend on TeeChart's canvas using its Rectangle and TextOut methods. You can also add checkboxes to this custom legend so that you already have the checkboxes events interactivity.

You can find examples on how to custom draw on TeeChart's canvas at All Features\Welcome !\Canvas\ in TeeChart's features demo. The demo is 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

Post Reply