首页 > 其他 > 详细

通过直接编码添加折线图到ChartControl

时间:2017-01-19 18:30:58      阅读:356      评论:0      收藏:0      [点我收藏+]

https://documentation.devexpress.com/#WindowsForms/CustomDocument2976

 

   ChartControl lineChart = new ChartControl();

            Series series1 = new Series("Series 1", ViewType.Line);

            series1.Points.Add(new SeriesPoint(1, 2));
            series1.Points.Add(new SeriesPoint(2, 12));
            series1.Points.Add(new SeriesPoint(3, 14));
            series1.Points.Add(new SeriesPoint(4, 17));

            lineChart.Series.Add(series1);

            //series1.ArgumentScaleType = ScaleType.Numerical;

            //((LineSeriesView)series1.View).LineMarkerOptions.Kind = MarkerKind.Triangle;
            //((LineSeriesView)series1.View).LineStyle.DashStyle = DashStyle.Dash;

            //((XYDiagram)lineChart.Diagram).EnableAxisXZooming = true;

            //lineChart.Legend.Visibility = DefaultBoolean.;

            //lineChart.Titles.Add(new ChartTitle());
            //lineChart.Titles[0].Text = @"A Line Chart";

            lineChart.Dock = DockStyle.Fill;
            this.Controls.Add(lineChart);

 

通过直接编码添加折线图到ChartControl

原文:http://www.cnblogs.com/chucklu/p/6307398.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!