This question is locked. New answers and comments are not allowed.
I'm trying to use the new Pie chart. The source for the pie would be untyped DataTable. I was trying different ways but I cannot force it to work.
The Model.Data is a DataTable that consist of 3 columns "Name" : string, "Surname" : string, "Sale" : int
How can I configure Chart to show a Pie ?
The code bellow shows some lines and the legent but it doesn't show the pie itself. Any ideas how can I force it to work? Where am I doing sth wrong.
Regards,
The Model.Data is a DataTable that consist of 3 columns "Name" : string, "Surname" : string, "Sale" : int
How can I configure Chart to show a Pie ?
The code bellow shows some lines and the legent but it doesn't show the pie itself. Any ideas how can I force it to work? Where am I doing sth wrong.
@( Html.Telerik().Chart(Model.Data.Rows.OfType<DataRow>()).Name("chart") .Title("Sale") .Series(series => series.Pie(value => value["Sale"], x => x["Name"].ToString(), x => x["Name"].ToString())) )
Regards,