MSChart应用系列

            collectorId = Convert.ToInt32(Request.QueryString["id"]);
            Chart1.Series[0].ChartType = SeriesChartType.Spline;
            Chart1.Series[0].Color = System.Drawing.Color.Blue;
            Chart1.Series[0].IsValueShownAsLabel = true;
            Chart1.Series[0].MarkerStyle = MarkerStyle.Circle;
            Chart1.Series[0].MarkerColor = System.Drawing.Color.White;
            Chart1.Series[0].MarkerBorderColor = Color.Red;
            Chart1.ChartAreas[0].AxisX.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            Chart1.ChartAreas[0].AxisX.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            Chart1.ChartAreas[0].AxisY.MajorGrid.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));
            Chart1.ChartAreas[0].AxisY.LineColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64)))));

//mschart固定x轴刻度数目

Chart1.ChartAreas[0].AxisX.Interval = 1;
Chart1.ChartAreas[0].AxisX.IntervalAutoMode = IntervalAutoMode.FixedCount;

posted on 2010-07-28 12:05 badnewfish 阅读(263) 评论(1) 编辑 收藏