I have a row from my database. I want to bind some of the columns to a PieChart. Is this possible or does each data item in a pie chart need to be a separate record from my database?
2 Answers, 1 is accepted
0
Accepted
Petar Marchev
Telerik team
answered on 13 Mar 2012, 10:48 AM
Hi Douglas,
In general - the chart expects a list of objects to work. This means that passing it a single record - will not lead to any meaningful results.
I am not familiar with your scenario, but my general suggestion would be to manually gather all values (from that single row) that you need to show into a List<double> and pass that list to the ItemsSource of the chart.
Regards,
Petar Marchev
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>