Click here to Skip to main content
15,883,705 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I am using asp.net chart control to display doughnut chart on my application. I want to increase the doughnut chart hole size. please can anyone help me to change doughnut chart hole size



Thanks
Posted
Comments
joshrduncan2012 31-Jul-14 17:40pm    
Can you please provide code and explain what part you are trying to modify that will fulfill this requirement?
Ayyappan Ravi 1-Aug-14 2:39am    
Hi,


below are my .aspx code ans code behind code. I am calling the below function Pie() on page load method. everything is working fine. its giving me doughnut chart with correct values but I want to increase the doughnut chart hole size. currently it has the default hole size. I dont know what is the right property/code to increase the hole size. please help

Thanks,

<asp:Chart ID="Chart1" runat="server" Height="500px" Width="500px">
<Titles>
<asp:Title ShadowOffset="3" Name="Student Marks" />
</Titles>
<series>
<asp:series name="Legend" bordercolor="white" borderwidth="1" charttype="Doughnut"
CustomProperties="PieStartAngle=270"/>

<chartareas>
<asp:ChartArea Name="ChartArea1" BorderWidth="0" >






private void Pie()
{
string[] xAxis = { "External Errors", "Internal Errors", "TAT", "Pjts Completed", "HC- Work Absorption", "VOB", "Attrition", "WMTY-Eng", "WMTY-Perf", "Community" };
double[] yAxis = { 11.67, 11.67, 11.67, 10, 10, 15, 8.33, 8.33, 8.33, 5 };
Chart1.Series["Legend"].Points.DataBindXY(xAxis, yAxis);
}

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900