最近项目要用到Dundas Chart组件了,做个小东西熟悉一下,做了一天了,图的效果不错。
this is html code
Code Bihind
这里暂时只演示的静态数据,动态邦定的例子我写完了再发。
总结一下:
/*chart的过程
* 1,new one chart() object
* 2,set chart style
* 3,add chartarea into chart
* 4,new one legend() object
* 5,set legend() style just alin and font
* 6,add legend() to chart's lengends collection
* 7,dock legend() to a chartarea
* 8,add series to chart 's series collection chart1.series.add("name");
* 9,new series() object series ss=chart1.series["name"];
* 10,series databind
* 11,series.chartarea="chartarea name"
* 12,series.legend="legend name"
* 13,series is real chart to show for us eye?!
* 14,save dynamic picture to server and set image control's imageurl is picture's url
*/
偶 Englis very pool.sorry :^)