Posted 02 Oct 2012 Link to this post
I am having a problem getting a pie chart to render where there are only two seriesitems and one of the values is 0. When a third series is added then it has no problems with one of them having a value of 0
<
telerik:RadHtmlChart
runat
=
"server"
ID
"PieChart2"
Width
"420"
Transitions
"true"
>
Appearance
FillStyle
BackgroundColor
"White"
/>
</
ChartTitle
Text="CM Standard > Primary > Patients with No Pending Tasks">
Align
"Center"
Position
"Top"
PlotArea
Series
telerik:PieSeries
StartAngle
"90"
LabelsAppearance
"Circle"
DataFormatString
"{0} %"
TooltipsAppearance
Items
telerik:SeriesItem
"#ff9900"
Exploded
Name
"Internet Explorer"
YValue
"18.3"
"#cccccc"
"false"
"Firefox"
"35.8"
<%--<
"#bbbbbb"
/>--%>
Legend
"Bottom"
Visible
public void LoadChartData()
{
int totalpatients = Utilities.GetInt(ds.Tables[0].Rows[0]["TotalPatients"]);
int PatientsNoPendingTasks = Utilities.GetInt(ds.Tables[0].Rows[0]["PatientsNoPendingTasks"]);
int PatientsWithPendingTasks = Utilities.GetInt(ds.Tables[0].Rows[0]["PatientsWithPendingTasks"]);
int PatientsOverDueforCHA = Utilities.GetInt(ds.Tables[0].Rows[0]["PatientsOverDueforCHA"]);
int PatientsWithUpdatedCHA = totalpatients - PatientsOverDueforCHA;
PieSeries pieSeries = (PieSeries)PieChart2.PlotArea.Series[0];
PieChart2.PlotArea.Series[0].Items[0].Name = "No Pending Tasks";
PieChart2.PlotArea.Series[0].Items[0].YValue = 0;// PatientsNoPendingTasks;
PieChart2.PlotArea.Series[0].Items[1].YValue = 43;// PatientsNoPendingTasks;
PieChart2.PlotArea.Series[0].Items[1].Name = "Has Pending Tasks";
//PieChart2.PlotArea.Series[0].Items[2].YValue = 10;// PatientsNoPendingTasks;
//PieChart2.PlotArea.Series[0].Items[2].Name = "Test";
}
Posted 03 Oct 2012 Link to this post
Posted 31 Jan 2013 Link to this post
Posted 04 Feb 2013 Link to this post