- 注册时间
- 2012-6-20
- 最后登录
- 2014-4-24
- 阅读权限
- 10
- 积分
- 254
- 精华
- 0
- 帖子
- 63
|
http://www.miniui.com/demo/#src=YUI2/barChart.html 看了这个实例
我想
YAHOO.demo.data = [
{ month: "January", utilities: 941.68 },
{ month: "February",utilities: 901.35 },
{ month: "March", utilities: 789.32 },
{ month: "April",utilities: 684.71 },
{ month: "May",utilities: 779.811 },
{ month: "June",utilities: 897.95 },
{ month: "July", utilities: 919.811 },
{ month: "August", utilities: 937.95 },
{ month: "September", utilities: 779.811 },
{ month: "October", utilities: 697.95 },
{ month: "November", utilities: 679.811 },
{ month: "December", utilities: 897.95 }]
这些数据能不能从 datagrid中获取出来呢。 要怎么获取呢。就是怎么获取datagrid的某几列的值,在封装成json 数据。这样我就可以根据datagrid中的数据值。来绘制出柱状图了。
|
|