<
telerik:RadScriptManager
runat
=
"server"
ID
"RadScriptManager1"
/>
telerik:RadSkinManager
"RadSkinManager1"
ShowChooser
"true"
div
class
"demo-containers"
>
"demo-container"
telerik:RadHtmlChart
"DonutChart1"
Width
"520"
Height
"500"
Transitions
Skin
"Silk"
ChartTitle
Text
"OS Usage Statistics for December 2012"
Appearance
Align
"Center"
Position
"Top"
</
Legend
"Right"
Visible
PlotArea
Series
telerik:DonutSeries
StartAngle
"90"
HoleSize
"65"
LabelsAppearance
DataFormatString
"{0} %"
></
TooltipsAppearance
Color
"White"
"{0}%"
SeriesItems
telerik:PieSeriesItem
BackgroundColor
"#00adcc"
Exploded
"false"
Name
"Win7"
Y
"55.6"
"#cccccc"
"Win8"
"2.5"
"#999999"
"Vista"
"2.8"
"#888888"
"NT"
"1.8"
"#777777"
"WinXP"
"21.1"
"#666666"
"Linux"
"4.7"
"#555555"
"Mac"
"8.7"
"#444444"
"Mobile"
"2.2"
telerik:RadAjaxManager
"theAjaxMaanger"
AjaxSettings
telerik:AjaxSetting
AjaxControlID
"demoConfigurator"
UpdatedControls
telerik:AjaxUpdatedControl
ControlID
LoadingPanelID
"RadAjaxLoadingPanel1"
telerik:RadAjaxLoadingPanel
SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["constr"].ConnectionString); con.Open(); SqlDataReader myReader = null; SqlCommand myCommand = new SqlCommand("select ( select sum([Budget Estimates 2017-18]) AS [FUNDWISE] from [dbo].[budgetbook-17-18] where Fund = '" + scnum.Text + "' ) , sum([Budget Estimates 2017-18]) as [costwise] from [dbo].[budgetbook-17-18] where Cost_ctr ='" + costcenter.Text + "'", con); myReader = myCommand.ExecuteReader(); while (myReader.Read()) { string totalfund; string totalcostbudget; totalfund = (myReader[0].ToString()); totalcostbudget = (myReader[1].ToString()); //Convert.ToDouble(totalcostbudget) / Convert.ToDouble(totalfund) * 360 = a; a = Convert.ToDouble(totalcostbudget); b = Convert.ToDouble(totalfund); piecostbudget = a / b * 100; } Double piefirst = pie100 - piecostbudget; Math.Round(piecostbudget); Math.Round(piefirst); con.Close(); }