This is a migrated thread and some comments may be shown as answers.

Show / Hide series

1 Answer 306 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Carlo
Top achievements
Rank 1
Carlo asked on 10 Sep 2013, 06:20 PM
Hello, I'm trying to do a project where I have a few checkboxes that correspond to different series. When the checkbox is checked, the series is displayed, and if the checbox is unchecked, the series is collpased. There are two problems with this:

1) The legend still shows the collapsed series
2) The values on the Y axis are not recalculated as the series go away. For example: If series "A" has max value is 5000, and series "B" max value is 250, when hiding "A" the Y values keep showing all the way up to 5000.

How can I fix these two problems?

Thank you,

- Carlo

1 Answer, 1 is accepted

Sort by
0
Petar Kirov
Telerik team
answered on 14 Sep 2013, 11:37 AM
Hi Carlo,

I have prepared a sample project that demonstrates a pattern for achieving this. The idea is that you have a collection that holds the information for all of your series (the SeriesInfos property) and property that returns only the visible series (the FilteredSeries property).

For this project I have used the ChartSeriesProvider feature. You can learn more about it here.

I hope this helps.
 
Regards,
Petar Kirov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
ChartView
Asked by
Carlo
Top achievements
Rank 1
Answers by
Petar Kirov
Telerik team
Share this question
or