日期:2014-05-17 浏览次数:20873 次
using System.Windows.Forms.DataVisualization.Charting; ... ... Chart c = new Chart(); ChartArea Area1 = new ChartArea(); Area1.BackColor = Color.Black; c.ChartAreas.Add(Area1); c.Width = 200; c.Height = 200; Series mySeries = new Series(); mySeries.Points.DataBindXY(new string[] { "one", "two", "three" }, new int[] { 1, 2, 3 }); // mySeries.LabelAngle = 45; // why doesn't this work? c.Series.Add(mySeries); [B][color=FF0033]this.controls.add(c);[color][/B]