winform chart控件设置

   winform chart控件设置
           
            //seriesX.MarkerColor = Color.Green;
            //设置点的大小
            //seriesX.MarkerSize = 5;
            //seriesX.MarkerStyle = MarkerStyle.Circle;
            // 画样条曲线(Spline)
            seriesX.ChartType = SeriesChartType.Line;
                            // 线宽2个像素
            seriesX.BorderWidth = 2;
                            // 线的颜色:红色
            seriesX.Color = System.Drawing.Color.Red;
            seriesX.LegendText = "X";
            ChartArea chartAreaX = chartX.ChartAreas[0];
            chartAreaX.AxisX.Title = "Time";
            chartAreaX.AxisX.TitleAlignment = StringAlignment.Near;
            chartAreaX.AxisX.Enabled = AxisEnabled.True;

Series seriesX = sc.chartX.Series[0];
seriesX.Points.Clear();
chartX.Show();
seriesX.Points.AddXY(strX, v.dx);
chartAreaX.AxisY.Maximum = Xmax + 50;

你可能感兴趣的:(.net)