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

Dynamic binding series problem.

1 Answer 65 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Ye HaoChen
Top achievements
Rank 1
Ye HaoChen asked on 25 Jul 2013, 03:07 AM
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.

1 Answer, 1 is accepted

Sort by
0
Rosko
Telerik team
answered on 26 Jul 2013, 02:27 PM
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 >>
Tags
Chart
Asked by
Ye HaoChen
Top achievements
Rank 1
Answers by
Rosko
Telerik team
Share this question
or