Hi,
I have a simple business object:
class Obj
{
public string Label {get; set; }
public int Data {get; set; }
}
Now I need to display a collection of such objects in a pie chart so when I handle my NeedDataSource event of that chart I have the following:
Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
chart.DataSource = this.dataSource;
I have a simple business object:
class Obj
{
public string Label {get; set; }
public int Data {get; set; }
}
Now I need to display a collection of such objects in a pie chart so when I handle my NeedDataSource event of that chart I have the following:
Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
chart.DataSource = this.dataSource;
where this.dataSource is a List<Obj>, everything works perfectly with the exception that the labels of the slices keep showing the Obj.Data value, instead I want it to show Obj.Label value, what do I need to do?
I hope this is a trivial question, but I can't seem to get it. I tried setting PlotArea.XAxis.DataLabelsColumn and Series.DataXColumn but nothing seems to work...
Thank you
Rodion