请大侠 帮忙看看,我用mschart 作柱状图数据能出来,而转为饼状图是就开始报错:在一个图表区中,Pie 图表不能与任何其他图表类型组合使用。
代码:
Series series = Chart1.Series.Add("My series");
double[] y = { 63.1, 50.5, 72.6, 20.8, 59.9 };
string[] x = { "a", "b", "c", "d", "e" };
series.Points.DataBindXY(x, y);
series.ChartType = SeriesChartType.Pie;
series.ShadowOffset = 1;
series.BorderColor = Color.DarkGray;
Chart1.Width = 600;
Chart1.Height = 400;
泛舟湖上清波郎朗