Areachart instead of LineChart

19 views
Skip to first unread message

Mathieu Fd

unread,
Jun 15, 2017, 5:30:35 PM6/15/17
to Google Visualization API
I am using Google Visualization Chart with data from a Google sheet document.

It's working well. But I want to change LineChart to Chart Area, I got an error : Invalid visualization type: corechart. I tried it with other example but the corechart doesn't seem to be compatible with the datawrapper.

I tried this : https://jsfiddle.net/pvcb8gnw/ 

ChartWrapper({ <- Replaced by ChartArea doesn't work chartType:
'LineChart', <- Replaced by Corechart give the error

I am trying to do this : https://developers.google.com/chart/interactive/docs/gallery/areachart
Message has been deleted
Message has been deleted

Ray Thomas

unread,
Jun 15, 2017, 9:20:14 PM6/15/17
to Google Visualization API
It should be AreaChart not ChartArea.

It works for me just by changing chartType: 'LineChart', to chartType: 'AreaChart',

https://jsfiddle.net/brisray/oLb5dwz5/

Mathieu

unread,
Jun 16, 2017, 2:57:09 AM6/16/17
to google-visua...@googlegroups.com
Yes you are right, I forgot to capitalize "Chart". Thank you! 

Le 16 juin 2017 03:15, "'Ray Thomas' via Google Visualization API" <google-visua...@googlegroups.com> a écrit :
It works for me just by changing chartType: 'LineChart', to chartType: 'AreaChart',

https://jsfiddle.net/brisray/oLb5dwz5/

--
You received this message because you are subscribed to a topic in the Google Groups "Google Visualization API" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-visualization-api/VNhl1GFwgio/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualization-api+unsub...@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/8d30a7c2-17a8-4221-9ceb-3bcf3d7b3d98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages