C# 绘制图表(柱状图,线性图,饼状图)

http://blog.csdn.net/gisfarmer/article/details/3736452

 

Chart饼状图,每根柱子的宽度:

  int a = Chart1.Series["Series1"].Points.Count;
  Chart1.Series["Series1"].CustomProperties = "PointWidth=0.5";
  Chart1.Width = Unit.Pixel(25 * a);

如果有多个Series,还可以在乘以Series的个数。

posted @ 2015-04-16 17:04  eva.xiao  阅读(923)  评论(0编辑  收藏  举报