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

Filtering and multiple series

1 Answer 87 Views
Chart
This is a migrated thread and some comments may be shown as answers.
chris
Top achievements
Rank 1
chris asked on 30 Sep 2011, 06:21 PM
Hello everyone,

There has to be a way to do this.
Problems

1. What I am trying to do it bind a list<Objects> to a series to have multiple series on the chart show. But there will be an unknown amount of Series each time so I can't hard code everything series mapping. Is there a way to have one series mapping definition set and bind a collections of objects to it?

2. After I have the series mapping done I am looking to do some simple filtering through the chart legend. Would there be a way to do this with the none hard-coded series mappings?

Please help

Thank you 

1 Answer, 1 is accepted

Sort by
0
Evgenia
Telerik team
answered on 05 Oct 2011, 12:43 PM
Hi Chris,

1. You can check this forum post where my colleague Ves provided a sample project to add/remove mappings dynamically and manipulate the Visibility property of the SeriesDefinition objects.

2. You can use the 1. approach and add the CheckBox in the Legend by retemplating the LegendItem Style. This is demonstrated here.

Regards,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
chris
Top achievements
Rank 1
Answers by
Evgenia
Telerik team
Share this question
or