Javascript 使用JSON多行填充图表时Google图表中的工具提示

Javascript 使用JSON多行填充图表时Google图表中的工具提示,javascript,json,charts,google-visualization,tooltip,Javascript,Json,Charts,Google Visualization,Tooltip,使用stackoverflow,我正在用Google制作自己的图表。 我读过: 有了这个“说明”,我试着用自己做一个多线图,有自定义的工具提示,但没有结果 我试过类似的东西 {"cols": [{"id": "", "label": "Date", "type": "string"}, {"id": "", "label": "price", "type": "number"}, {"id": "", "role": "tooltip", "type": "string", "p

使用stackoverflow,我正在用Google制作自己的图表。 我读过: 有了这个“说明”,我试着用自己做一个多线图,有自定义的工具提示,但没有结果

我试过类似的东西

{"cols": [{"id": "", "label": "Date", "type": "string"},
    {"id": "", "label": "price", "type": "number"},
    {"id": "", "role": "tooltip", "type": "string", "p" : { "role" : "tooltip" } } 
    {"id": "", "label": "price2", "type": "number"},
    {"id": "", "role": "tooltip", "type": "string", "p" : { "role" : "tooltip" } } 
],
"rows": [
    {"c":[{"v": "Apr 24th","f":"null"}, {"v": 56000,"f":"56000"}, {"v": "24 April, Price - 56000, Seller-abcd"}, {"v": 50000,"f":"56000"}, {"v": "24 April, Price - 56000, Seller-abcd"}]},
    {"c":[{"v": "May 3rd","f":"null"}, {"v": 68000,"f":"68000"}, {"v": "3 May, Price - 68000, Seller-abcd"}, {"v": 56000,"f":"56000"}, {"v": "24 April, Price - 56000, Seller-abcd"}]},
    {"c":[{"v": "May 13th","f":"null"}, {"v": 50400,"f":"50400"}, {"v": "23 May, Price - 50000, Seller-abcd"}, {"v": 56000,"f":"56000"}, {"v": "24 April, Price - 66000, Seller-abcd"}]}
]}
这有什么不对?我想指定:对于单行(复制上面链接的代码),这可以很好地工作,并且我有一个很好的图表:D
有人能帮我吗?

您的第一个工具提示列后缺少一个逗号:

"cols": [
    {"id": "", "label": "Date", "type": "string"},
    {"id": "", "label": "price", "type": "number"},
    {"id": "", "role": "tooltip", "type": "string", "p" : { "role" : "tooltip" } }, // <--- need a comma here
    {"id": "", "label": "price2", "type": "number"},
    {"id": "", "role": "tooltip", "type": "string", "p" : { "role" : "tooltip" } } 
]
“cols”:[
{“id”:“”“标签”:“日期”,“类型”:“字符串”},
{“id”:“”“标签”:“价格”,“类型”:“编号”},

{“id”:“,”role”:“tooltip”,“type”:“string”,“p”:{“role”:“tooltip”}},//谢谢你,兄弟,我太累了,这个逗号对我来说就像……昏迷!