Page 1 of 1
SeriesGroups in second legend
Posted: Thu Mar 16, 2006 5:17 am
by 9787414
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?
Posted: Thu Mar 16, 2006 4:00 pm
by narcis
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.
Posted: Mon Apr 03, 2006 7:55 pm
by 9787414
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.
Posted: Tue Apr 04, 2006 10:22 am
by narcis
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.