我有一些复杂的谷歌可视化代码,有时表格显示得很完美,有时我会看到这个屏幕:
错误是什么意思?我看谷歌搜索但我无法得到任何答案?那意味着什么?
有时谷歌可视化表加载精细,有时不加载? 也许问题可能是我的数据库数据,因为我有一个用(,)逗号分隔的单词的单元格...我得到这个像字符串......
更新:这是我用于谷歌可视化的js代码: http://jsbin.com/binuvawi/1/edit
更新2: getzadaci.php的样本:
{"cols":[{"label":"ID","type":"number"},{"label":"Naziv","type":"string"},{"label":"Vrsta","type":"string"},{"label":"Status","type":"string"},{"label":"Opis","type":"string"},{"label":"Pocetak","type":"date"},{"label":"Zavrsetak","type":"date"},{"label":"Odgovoran","type":"string"},{"label":"Parcela","type":"string"},{"label":"Usluzno?","type":"string"},{"label":"id_parcele","type":"string"}],"rows":[{"c":[{"v":1},{"v":"Priprema"},{"v":"navodnjavanje"},{"v":"U pripremi"},{"v":"Da se izrzi nadovdnjavanje"},{"v":"Date(2014, 02, 25)"},{"v":"Date(2014, 02, 28)"},{"v":"Laza Lazic"},{"v":"Njiva 5"},{"v":"NE"},{"v":"0"}]},{"c":[{"v":2},{"v":"Djubrenje"},{"v":"djubrenje"},{"v":"U toku"},{"v":"Vrsi se djubrenje parcele na temp. od oko 12C"},{"v":"Date(2014, 02, 28)"},{"v":"Date(2014, 03, 05)"},{"v":"Pera Peric"},{"v":"vocnjak 3"},{"v":"DA"},{"v":"0"}]},{"c":[{"v":22},{"v":"Novo zemljiste"},{"v":"obrada tla, zastita, berba\/zetva "},{"v":"Zavrseno"},{"v":"jeeeeeeeeeeeeeeeeeeeeeee"},{"v":"Date(2013, 04, 30)"},{"v":"Date(2013, 05, 11)"},{"v":""},{"v":"S4"},{"v":"787"},{"v":"0"}]},{"c":[{"v":25},{"v":"sklas"},{"v":"obrada tla, zastita, skladistenje"},{"v":"U planu"},{"v":"testiranje"},{"v":"Date(2013, 04, 17)"},{"v":"Date(2013, 04, 30)"},{"v":""},{"v":"Vocnjak N, S4, Moja parcela N, Parcela 3n "},{"v":""},{"v":"3, 19, 11, 13"}]}]}
LOAD:
<script type="text/javascript">
google.load('visualization', '1.1', {packages: ['controls']});
</script>