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

Is it possible to bind multiple series with different data sources ?

2 Answers 131 Views
Chart
This is a migrated thread and some comments may be shown as answers.
AndrewRick
Top achievements
Rank 1
AndrewRick asked on 27 Oct 2011, 12:11 PM
Hello,

Is it possible to bind multiple series to one chart but with different data sources ?

I'm having a case where I need about 6 line series on the chart but they have complitely different data source.

Is there an example ?

I'm planning on using the latest (Q2 2011) WPF version on .NET 4 (evaluating the trial currently). 

Thanks!

2 Answers, 1 is accepted

Sort by
0
AndrewRick
Top achievements
Rank 1
answered on 27 Oct 2011, 04:59 PM
Never mind, found a solution by binding to a list of lists and using CollectionIndex property on SeriesMapping, like shown here:

http://www.telerik.com/help/silverlight/radchart-populating-with-data-data-binding-to-nested-collections.html

Have to say, a bit odd solution but seems it works (not sure how it fits into MVVM though).
0
Giuseppe
Telerik team
answered on 28 Oct 2011, 09:38 AM
Hello Andres Raieste,

Alternatively you can use the more MVVM-friendly option of setting SeriesMapping.ItemsSource instead of RadChart.ItemsSource (more information can be found here).

Hope this helps.


Greetings,
Giuseppe
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Chart
Asked by
AndrewRick
Top achievements
Rank 1
Answers by
AndrewRick
Top achievements
Rank 1
Giuseppe
Telerik team
Share this question
or