Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 25, 2012 01:52 AM by Decker Dong - MSFT
Member
464 Points
626 Posts
Nov 24, 2012 09:15 AM|LINK
Hi
I've created a pie chart using the MS charting controls, but I can't find a way to remove the white space above and below the pie chart (about an inch):
<asp:Chart ID="Chart_ClassFillRate" runat="server" Palette="None" PaletteCustomColors="240, 76, 82, 139; 240, 248, 162, 27; 240, 229, 86, 54; 240, 214, 2, 87"> <series> <asp:Series Name="Default" ChartType="Pie"> </asp:Series> </series> <chartareas> <asp:ChartArea Name="ChartArea_ClassFillRate" BackColor="Transparent" BorderWidth="0"> <Position Height="100" Width="100" X="0" Y="0" /> <Area3DStyle Rotation="10" Perspective="10" Enable3D="true" Inclination="50" IsRightAngleAxes="false" WallWidth="0" IsClustered="true" /> </asp:ChartArea> </chartareas> <Legends> <%--<asp:Legend Name="DefaultLegend" />--%> </Legends> </asp:Chart>
Thanks as always
All-Star
118619 Points
18779 Posts
Nov 25, 2012 01:52 AM|LINK
Hi,
I cannot reproduce your issue,and there's something wrong with your codes……
Have you got anything code-behind?
RichardLaw
Member
464 Points
626 Posts
How to remove padding (top and bottom) from MS pie chart
Nov 24, 2012 09:15 AM|LINK
Hi
I've created a pie chart using the MS charting controls, but I can't find a way to remove the white space above and below the pie chart (about an inch):
<asp:Chart ID="Chart_ClassFillRate" runat="server" Palette="None" PaletteCustomColors="240, 76, 82, 139; 240, 248, 162, 27; 240, 229, 86, 54; 240, 214, 2, 87"> <series> <asp:Series Name="Default" ChartType="Pie"> </asp:Series> </series> <chartareas> <asp:ChartArea Name="ChartArea_ClassFillRate" BackColor="Transparent" BorderWidth="0"> <Position Height="100" Width="100" X="0" Y="0" /> <Area3DStyle Rotation="10" Perspective="10" Enable3D="true" Inclination="50" IsRightAngleAxes="false" WallWidth="0" IsClustered="true" /> </asp:ChartArea> </chartareas> <Legends> <%--<asp:Legend Name="DefaultLegend" />--%> </Legends> </asp:Chart>Thanks as always
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How to remove padding (top and bottom) from MS pie chart
Nov 25, 2012 01:52 AM|LINK
Hi,
I cannot reproduce your issue,and there's something wrong with your codes……
Have you got anything code-behind?