【发布时间】:2012-11-28 21:12:16
【问题描述】:
我制作 json 来制作谷歌图表如下。
var dataArray = '{
"cols":[
{"id":"name","label":"Name","type":"string","p":"{style: 'width: 200px;'}"},
{"id":"date","label":"Date","type":"date","p":"{style: 'width: 200px;'}"}
],
"rows":[.....
行有一些价值。我尝试使用 p 来设置列的宽度。但这是行不通的。我指的是https://developers.google.com/chart/interactive/docs/reference#dataparam
它显示语法错误。 SyntaxError: missing ; before statement
如何更改谷歌图表中的列?请帮我。
https://developers.google.com/chart/interactive/docs/reference#dataparam
【问题讨论】:
标签: jquery google-visualization