Dynamic binding series problem.

2 posts, 0 answers
  1. Ye HaoChen
    Ye HaoChen avatar
    27 posts
    Member since:
    Nov 2009

    Posted 24 Jul 2013 Link to this post

    Hi,

    I have a question about dynamic series binding.

    This is code example:
    public class MyViewModel
    {
      public List<ChartData> chartItem {get;set;};
      public List<List<ChartData>> ChartData {get;set;};
     
    }
     
    public class ChartData
    {
      public DateTime Xvalue{get;set;}
      public DateTime Yvalue{get;set;}
    }

    ChartData has some chartItem, and one ChartItem will be graph a line in the ChartView.
    ChartItem's quantity is dynamic in the ChartData. 

    What ways can be binding this data in the ChartView? (Lineseries are dynamic.)

    Thank you.
  2. Rosko
    Admin
    Rosko avatar
    137 posts

    Posted 26 Jul 2013 Link to this post

    Hello Ye HaoChen,

    As I understood, you are looking for a way to have a dynamic number of series in ChartView. It can be done. For the purpose, you can read the relevant online help reading.

    Regards,
    Rosko
    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top