請大俠 幫忙看看,我用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;
添加回答
舉報
0/150
提交
取消