This question is locked. New answers and comments are not allowed.
I have set up a chart with a Categorical horizontal axis and I am trying to bind it to data at run time. I have a list of object defined as below
public class ChartData { public float Value { get; set; } public string Category { get; set; } public ChartData(float value, string category) { this.Value = value; this.Category = category; } }
To bind to the chart I use the statementchart.Series[0].ItemsSource = series;
The chart shows as empty. However If I do not assign it, then the sample data in the Xaml is shown correctly.
How do I bind the list .
Thaks