Hi,
I am trying to create a AnnotationChart with json data. But, I get this
error -
https://jsfiddle.net/9qLmr4Lv/
Type mismatch. Value 15155 does not match type number
This is the json string I am using -
json_str =
'{"cols":[{"label":"Date","type":"date"},{"label":"Area","type":"number"}],"rows":[{"c":[{"v":"Date(2016,
4, 20)"},{"v":"15155","f":null}]},{"c":[{"v":"Date(2016, 4,
21)"},{"v":"15181","f":null}]},{"c":[{"v":"Date(2016, 4,
22)"},{"v":"15188","f":null}]},{"c":[{"v":"Date(2016, 4,
23)"},{"v":"15203","f":null}]}]}';
This same json string works fine for line chart -
https://jsfiddle.net/9qLmr4Lv/1/
Also, from official example on AnnotationChart, it works fine with
data.addRows function -
https://jsfiddle.net/t6m9zrv8/
So, is there anyway to work around this issue?
Thanks,
Sriharsha Puranik.
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-visualization-api/c22c967d-8bb1-49be-8002-d22a5b0fa8d2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.