10
即时通讯尝试使用MS图表控件创建简单的饼图。当我的饼图在浏览器中呈现时,我得到了我无法摆脱的饼图周围的填充。我希望饼图在没有填充或边距的情况下坐在图像的边缘。关于我如何实现这一点的任何想法?
在我的代码下面填充以蓝色突出显示。即Chart1.BackColor = System.Drawing.Color.Blue;
<script type="text/C#" runat="server">
protected void Page_Load(object sender, EventArgs e)
{
//Set the chart type
Chart1.Series["Series1"].ChartType = SeriesChartType.Pie;
//add points
Chart1.Series["Series1"].Points.AddY(12);
Chart1.Series["Series1"].Points.AddY(45);
Chart1.Series["Series1"].Points.AddY(67);
//set back color of chart object
Chart1.BackColor = System.Drawing.Color.Blue;
//set back color of chart area
Chart1.ChartAreas["ChartArea1"].BackColor = System.Drawing.Color.Green;
}
</script>
<asp:Chart ID="Chart1" runat="server">
<Series>
<asp:Series Name="Series1" ChartType="Pie">
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea Name="ChartArea1">
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
关于这个问题的任何消息? – 2010-07-16 18:56:33
对不起,我没有找到任何东西 – MakkyNZ 2010-07-19 02:21:59