简体   繁体   English

动态Google柱形图

[英]Dynamic Google Column Chart

I want to create a google column chart dynamically. 我想动态创建一个谷歌柱形图。 My database query result is [{"month":"May-2013","total_sales":"1369250"},{"month":"June-2013","total_sales":"4328119"},{"month":"July-2013","total_sales":"4636663"},{"month":"August-2013","total_sales":"4754047"},{"month":"September-2013","total_sales":"5014683"}] 我的数据库查询结果是[{"month":"May-2013","total_sales":"1369250"},{"month":"June-2013","total_sales":"4328119"},{"month":"July-2013","total_sales":"4636663"},{"month":"August-2013","total_sales":"4754047"},{"month":"September-2013","total_sales":"5014683"}]

I want to show these json data as google column chart.Plese help me..Thank you in advance 我想将这些json数据显示为Google柱形图。请帮助我。

[
    ['Month','Sales'],
    ['May-2013','1369250'],
    ['August-2013','4754047']
]

Your data needs to be in a similar format, please refer to this . 您的数据需要在类似的格式,请参阅

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM