预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共15页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

HYPERLINK"http://blog.csdn.net/jjjfox/article/details/7259486"c#mschart控件使用方法 第一个简单的chart:spline//Createnewdataseriesandsetit'svisualattributesSeriesseries=newSeries("Spline");series.ChartType=SeriesChartType.Spline;series.BorderWidth=3;series.ShadowOffset=2; //Populatenewserieswithdataseries.Points.AddY(67);series.Points.AddY(57);series.Points.AddY(83);series.Points.AddY(23);series.Points.AddY(70);series.Points.AddY(60);series.Points.AddY(90);series.Points.AddY(20); //Addseriesintothechart'sseriescollectionChart1.Series.Add(series); 同时显示2条曲线//PopulateserieswithrandomdataRandomrandom=newRandom();for(intpointIndex=0;pointIndex<10;pointIndex++){Chart1.Series["Series1"].Points.AddY(random.Next(45,95));Chart1.Series["Series2"].Points.AddY(random.Next(5,75));} //SetseriescharttypeChart1.Series["Series1"].ChartType=SeriesChartType.Line;Chart1.Series["Series2"].ChartType=SeriesChartType.Spline; //SetpointlabelsChart1.Series["Series1"].IsValueShownAsLabel=true;Chart1.Series["Series2"].IsValueShownAsLabel=true; //EnableXaxismarginChart1.ChartAreas["ChartArea1"].AxisX.IsMarginVisible=true; //Enable3D,andshowdatapointmarkerlinesChart1.ChartAreas["ChartArea1"].Area3DStyle.Enable3D=true;Chart1.Series["Series1"]["ShowMarkerLines"]="True";Chart1.Series["Series2"]["ShowMarkerLines"]="True"; 显示column类型图//Createnewdataseriesandsetit'svisualattributesSeriesseries=newSeries("FlowRead");series.ChartType=SeriesChartType.Column;series.BorderWidth=3;series.ShadowOffset=2; //Populatenewserieswithdataseries.Points.AddY(67);series.Points.AddY(57);series.Points.AddY(83);series.Points.AddY(23);series.Points.AddY(70);series.Points.AddY(60);series.Points.AddY(90);series.Points.AddY(20); //Addseriesintothechart'sseriescollectionChart1.Series.Add(series); 很多点,效率还可以//FillseriesdatadoubleyValue=50.0;Randomrandom=newRandom();for(intpointIndex=0;pointIndex<20000;pointIndex++){yValue=yValue+(random.NextDouble()*10.0-5.0);Chart1.Series["Series1"].Points.AddY(yValue);} //SetfastlinecharttypeChart1.Seri