I had the same problem. For the multiple pie charts you sollution worked very well. transformed the table from a single row with 2 values into a table with 2 rows, 1 label text and 1 value per row.
Something like this:
Sex Avg Students Per Class
Now I do get a single pie char (with 1 single serie). Problem is I get 1 single legend with the series name "Avg Students Per Class".
I tried the sugestion in your second post but it didn't work, here is my code for the need datasource method:
|Telerik.Reporting.Processing.Chart chart = sender as Telerik.Reporting.Processing.Chart;
| chart.DataSource = GetSexAvgStudentsDS();
| chartSexo.Series.Type = Telerik.Reporting.Charting.ChartSeriesType.Pie;
| chartSexo.Series.DataLabelsColumn = "Sex";
I get a runntime exception cause there are yet no series when the last 2 lines execute. I tried moving those to lines to an event handler for the OnDataBoundItem event, but the the series exist, but the last line haves no effect on the labels since databound already started.
Also tried to have the serie named "Avg Students Per Class
" manually created in advanced, so I could apply the settings to datalabelscolumn before setting the datasource, but then the databind fails completly.
I'm out of ideas, would appreciate any help.
BTW, Can I have the table from the datasource displayed, with the correct labels under the graph using the Visual Properties visible option?