我基于google visualization api创建了一个仪表板(表格,一些图表)。我用JSON提供谷歌api,但一切正常,直到我尝试添加DATE格式。
现在我有了这种JSON格式:
{"cols":[{"label":"ID","type":"number"},{"label":"Masina","type":"string"},{"label":"Model","type":"string"},{"label":"Godina proiz","type":"date"},{"label":"Datum prve reg","type":"date"},{"label":"Reg br","type":"string"},{"label":"Istek reg","type":"date"},{"label":"Snaga","type":"number"},{"label":"Kapacitet","type":"number"},{"label":"Servis","type":"date"},{"label":"Trajna reg","type":"string"},{"label":"Vlasnistvo","type":"string"}],"rows":[{"c":[{"v":1},{"v":"traktor"},{"v":"IMT"},{"v":"510-td"},{"v":"\/Date(2014,07,07)\/"},{"v":"\/Date(2014,02,27)\/"},{"v":"BG-657 UI"},{"v":"\/Date(2014,04,24)\/"},{"v":55},{"v":57},{"v":"\/Date(2014,02,18)\/"},{"v":"licno"}]}]}
但谷歌说:
One or more participants failed to draw()×
我尝试了这么多解决方案,但又一次没用?
为什么谷歌可视化不接受这个:
{"v":"\/Date(2014,02,27)\/"}