chart helper使用笔记

chart helper  
      是asp.net chart control的包装类
1. 数据绑定的方法
(1)AddSeries方法
优点:可以对数据输出格式进行设定
缺点: 手动设定,繁琐
Series 中的各项参数: 
    chartType:  字符串类型,值与SeriesChartType相同,例如bar(横向图), pie(饼图), column(竖栏图)....
    name:  the name of legend(图例的名字), 需要在chart上添加AddLegends方法在显示界面上显示图例
    xValue, yValue :数组
 
         (2) DataBindTable方法
         优点: 可以直接绑定内存数据表。 便捷。
         缺点: 无法设定格式,chartType是column的
         参数: 参数1: datatable,  参数2:datatable某一列的columnName作为legend。
posted @ 2013-11-26 10:49  nosmall  阅读(540)  评论(0编辑  收藏  举报