For some reason I can understand - Chrome simply doesn't like the "options" 
string - but it works in IE

chart.draw(data, options);

this is the options data :{"title":"Annual MI 
Report","legend":"bottom","hAxis":{"title":"Year","format":"#"},"vAxis":{"minValue":"0","maxValue":"100","title":"Major
 
Incident 
Count"},"chartArea":{"left":"100","top":"50","width":"70%","height":"50%"},"animation":{"duration":"1000"}}

this is the data 
:"{\"cols\":[{\"label\":\"Year\",\"type\":\"number\"},{\"label\":\"HPE\",\"type\":\"number\"},{\"label\":\"HPI\",\"type\":\"number\"},{\"label\":\"HPE/HPI\",\"type\":\"number\"}],\"rows\":[{\"c\":[{\"v\":2010},{\"v\":50},{\"v\":42},{\"v\":3}]},{\"c\":[{\"v\":2011},{\"v\":45},{\"v\":22},{\"v\":2}]},{\"c\":[{\"v\":2012},{\"v\":80},{\"v\":33},{\"v\":7}]},{\"c\":[{\"v\":2013},{\"v\":55},{\"v\":44},{\"v\":8}]},{\"c\":[{\"v\":2014},{\"v\":70},{\"v\":55},{\"v\":4}]},{\"c\":[{\"v\":2015},{\"v\":66},{\"v\":8},{\"v\":11}]},{\"c\":[{\"v\":2016},{\"v\":22},{\"v\":11},{\"v\":5}]}]}"



On Wednesday, September 21, 2016 at 11:53:35 AM UTC-5, josh carrillo wrote:
>
>
> Invalid JSON string: {"title":"Annual MI 
> Report","legend":"bottom","hAxis":{"title":"Year","format":"#"},"vAxis":{"minValue":0,"maxValue":100,"title":"Major
>  
> Incident 
> Count"},"chartArea":{"left":100,"top":50,"width":"70%","height":"50%"},"animation":{"duration":1000}}
> ×
>
>
> I'm working on MVC5 project with the attached code
>
> Need assistance resolving error message in Chrome, very odd this api works 
> in IE....
>
>  
>
>
> <https://lh3.googleusercontent.com/-A64bket_ljc/V-Km31qwWVI/AAAAAAAAAXo/nFHK6hnkiiI9w-5AV1jYXQj019mQaE8eACLcB/s1600/chart%2Bdoesn_t%2Bwork%2Bin%2Bchrome.jpg>
>  
> <https://lh3.googleusercontent.com/-L8m9jQzXe1Y/V-Km9PRSbeI/AAAAAAAAAXs/xRLMleUdU8UmA0eYo3RVxGpZBO028xgdQCLcB/s1600/chart%2Bworks%2Bin%2BIE.jpg>
>
>
>

-- 
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 google-visualization-api+unsubscr...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
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/fcf987eb-2750-4077-934c-1a0ab56b56d5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to