我想动态创建一个谷歌列图表。我的数据库查询结果为
[{"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"}]
我想将这些json数据显示为google column chart.Plese帮帮我..谢谢你提前
答案 0 :(得分:0)
[
['Month','Sales'],
['May-2013','1369250'],
['August-2013','4754047']
]
您的数据必须采用类似格式,请参阅this。