日期:2014-05-20 浏览次数:20898 次
double[] yValues1 = { 12, 56, 87, 39, 27 };
double[] yValues2 = { 55, 89, 34, 67, 55 };
double[] yValues3 = { 19, 55, 45, 78, 16 };
Chart1.Series.Add("Series1");
Chart1.Series.Add("Series2");
Chart1.Series.Add("Series3");
Chart1.Series["Series1"].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Line;
Chart1.Series["Series2"].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Line;
Chart1.Series["Series3"].ChartType = System.Web.UI.DataVisualization.Charting.SeriesChartType.Line;
Chart1.Series["Series1"].Points.DataBindY(yValues1);
Chart1.Series["Series2"].Points.DataBindY(yValues2);
Chart1.Series["Series3"].Points.DataBindY(yValues3);