The inconsistency is a bug, so thanks for reporting it.  But you can work
around it if you just use numbers instead of strings for your number values.

On Thu, Jun 2, 2016 at 7:15 PM, Sriharsha Puranik <[email protected]>
wrote:

> 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
> <https://groups.google.com/d/msgid/google-visualization-api/c22c967d-8bb1-49be-8002-d22a5b0fa8d2%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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/CAOtcSJMhiUe3yULvGCREu4K31XjkPSEAf7%2BW%2B5AeJyGnR_O2pQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to