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

3 posts, 0 answers
  1. AndrewRick
    AndrewRick avatar
    5 posts
    Member since:
    Mar 2010

    Posted 27 Oct 2011 Link to this post

    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. AndrewRick
    AndrewRick avatar
    5 posts
    Member since:
    Mar 2010

    Posted 27 Oct 2011 Link to this post

    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).
  3. UI for WPF is Visual Studio 2017 Ready
  4. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 28 Oct 2011 Link to this post

    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 >>

Back to Top