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。
浙公网安备 33010602011771号