Error: You called the draw() method with the wrong type of data rather than a DataTable or DataView

2,731 views
Skip to first unread message

Hoang BaoHa

unread,
Jun 30, 2016, 3:37:19 AM6/30/16
to Google Visualization API
Dear all

Dear all

This morning, when I opened the account on Youtube, on Analytics, I saw appear one line like this "You gọi the draw () method with the wrong type of data DataTable or DataView rather than a". This is the first time I encountered this problem, I do not know how to handle?

I hope you help me fix? I'm very worried

Thank you very much

Best Regards

Hoang BaoHa


Error.png

Mikael BERTHO

unread,
Jun 30, 2016, 5:20:38 AM6/30/16
to Google Visualization API
Hi all.

Same issue for me when I try to render some charts. The charts were OK 2 hours ago and some of them are still working (google.visualization.LineChart).

But I have 2 web pages with google.visualization.ControlWrapper and google.visualization.ChartWrapper and I have the same errors :

One or more participants failed to draw()×
You called the draw() method with the wrong type of data rather than a DataTable or DataView×
You called the draw() method with the wrong type of data rather than a DataTable or DataView

I have join the PHP file.

I hope you will be able to fix this issue quickly.

Thanks.
 

 
consommation_err.php

Mikael BERTHO

unread,
Jun 30, 2016, 6:49:39 AM6/30/16
to Google Visualization API
Don't know if Google did something but now my graphs are workin again ;)

Thanks.

Daniel LaLiberte

unread,
Jun 30, 2016, 9:44:37 AM6/30/16
to Google Visualization API
I posted about an update here:  https://groups.google.com/forum/#!topic/google-visualization-api/on_-JmH4E3Y

This update appears to be affecting uses of ChartWrapper.  It may be that some problems can be resolved by flushing your cache.  

Hoang, I don't see the problem you are seeing.  Instead, I just see "No activity to show".  So for me, it is not trying to show any chart.  

Mikael, I can't do much with your PHP code.  Could you point me at a web page?


On Thu, Jun 30, 2016 at 6:49 AM, Mikael BERTHO <mikael...@gmail.com> wrote:
Don't know if Google did something but now my graphs are workin again ;)

Thanks.

--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@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/57115840-d026-46d1-a01f-633605fcba6d%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Mikael BERTHO

unread,
Jun 30, 2016, 10:19:38 AM6/30/16
to Google Visualization API
As my web pages are hosted on my personnal NAS, I prefer not to give the URL here (I can send it by mail or PM).

For now, I join the result of the PHP code.

But everything is working well now so maybe flushing my cache did the trick.
temperature_preau.htm

Robyn Shulman

unread,
Jul 10, 2016, 5:17:30 PM7/10/16
to Google Visualization API
Dear Daniel,

I was wondering if you could possibly assist me. I don't have any pages with charts and/or nor have I used Google's Visual API to build off of yet. I am getting this error in my webmaster tools that the following resources are blocked.

Can you possibly guide me in the right direction? Please see screenshots attached.

Thank you!






On Thursday, June 30, 2016 at 8:44:37 AM UTC-5, Daniel LaLiberte wrote:
I posted about an update here:  https://groups.google.com/forum/#!topic/google-visualization-api/on_-JmH4E3Y

This update appears to be affecting uses of ChartWrapper.  It may be that some problems can be resolved by flushing your cache.  

Hoang, I don't see the problem you are seeing.  Instead, I just see "No activity to show".  So for me, it is not trying to show any chart.  

Mikael, I can't do much with your PHP code.  Could you point me at a web page?

On Thu, Jun 30, 2016 at 6:49 AM, Mikael BERTHO <mikael...@gmail.com> wrote:
Don't know if Google did something but now my graphs are workin again ;)

Thanks.

--
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+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.



--
blockedresources.png
pages.png

Ranak Lindor

unread,
Jul 19, 2016, 3:23:09 AM7/19/16
to Google Visualization API
Hey mate, I'm currently having the same problem shown with Youtube analytics. Is there some way for me to fix this? I have zero knowledge of code however, so I'll need a bit of a walk through.

Daniel LaLiberte

unread,
Jul 19, 2016, 11:02:05 AM7/19/16
to Google Visualization API
For anyone who wants me to assist with investigating why you are getting this error message, you'll have to point me at your page, or give me access to it in some way so that I can look into it.  There is no way to tell otherwise.

In general, the message means what it says, that someone is calling a chart's draw() method without a DataTable or DataView.  Typically, this might happen when using a ChartWrapper, where the DataTable is set either when the ChartWrapper is constructed, or implicitly by setting the dataSourceUrl property, or later by calling the setDataTable() method. 

--
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-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.



--

Daniel LaLiberte

unread,
Jul 20, 2016, 2:34:40 PM7/20/16
to Google Visualization API
I am curious if people are still having this problem with calling the draw() method with the wrong type of data, rather than a DataTable or DataView.  My suggestions have been to look into erroneous uses of ChartWrappers.  It is possible that the ChartWrapper now complains more rather than appearing to ignore bad data.  If you are still seeing this problem, especially after the update that finished on July 1, please let me know, and preferably, post a link to a page demonstrating the problem.  Thanks.

Jacob Ross

unread,
Jul 21, 2016, 1:14:11 PM7/21/16
to Google Visualization API
Hi Daniel,

I ran into this error trying to view charts in Webmaster Tools > Accelerated Mobile Pages ... Oh wait, I did a hard refresh and my charts came back.


On Wednesday, July 20, 2016 at 11:34:40 AM UTC-7, Daniel LaLiberte wrote:
I am curious if people are still having this problem with calling the draw() method with the wrong type of data, rather than a DataTable or DataView.  My suggestions have been to look into erroneous uses of ChartWrappers.  It is possible that the ChartWrapper now complains more rather than appearing to ignore bad data.  If you are still seeing this problem, especially after the update that finished on July 1, please let me know, and preferably, post a link to a page demonstrating the problem.  Thanks.
On Tue, Jul 19, 2016 at 11:01 AM, Daniel LaLiberte <dlali...@google.com> wrote:
For anyone who wants me to assist with investigating why you are getting this error message, you'll have to point me at your page, or give me access to it in some way so that I can look into it.  There is no way to tell otherwise.

In general, the message means what it says, that someone is calling a chart's draw() method without a DataTable or DataView.  Typically, this might happen when using a ChartWrapper, where the DataTable is set either when the ChartWrapper is constructed, or implicitly by setting the dataSourceUrl property, or later by calling the setDataTable() method. 
On Tue, Jul 19, 2016 at 3:23 AM, Ranak Lindor <ranakt...@gmail.com> wrote:
Hey mate, I'm currently having the same problem shown with Youtube analytics. Is there some way for me to fix this? I have zero knowledge of code however, so I'll need a bit of a walk through.

On Thursday, June 30, 2016 at 1:37:19 AM UTC-6, Hoang BaoHa wrote:
Dear all

Dear all

This morning, when I opened the account on Youtube, on Analytics, I saw appear one line like this "You gọi the draw () method with the wrong type of data DataTable or DataView rather than a". This is the first time I encountered this problem, I do not know how to handle?

I hope you help me fix? I'm very worried

Thank you very much

Best Regards

Hoang BaoHa


--
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+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.



--



--

Daniel LaLiberte

unread,
Jul 21, 2016, 3:14:55 PM7/21/16
to Google Visualization API
It appears there is a problem with what is in the default packages now, and you may need to load at least 'corechart' in your google.load() call to make the behavior more consistent.  We'll try to fix this for the future, but for now, this is probably the best workaround. 

On Thu, Jul 21, 2016 at 1:14 PM, Jacob Ross <jacobr...@gmail.com> wrote:
Hi Daniel,

I ran into this error trying to view charts in Webmaster Tools > Accelerated Mobile Pages ... Oh wait, I did a hard refresh and my charts came back.

On Wednesday, July 20, 2016 at 11:34:40 AM UTC-7, Daniel LaLiberte wrote:
I am curious if people are still having this problem with calling the draw() method with the wrong type of data, rather than a DataTable or DataView.  My suggestions have been to look into erroneous uses of ChartWrappers.  It is possible that the ChartWrapper now complains more rather than appearing to ignore bad data.  If you are still seeing this problem, especially after the update that finished on July 1, please let me know, and preferably, post a link to a page demonstrating the problem.  Thanks.
On Tue, Jul 19, 2016 at 11:01 AM, Daniel LaLiberte <dlali...@google.com> wrote:
For anyone who wants me to assist with investigating why you are getting this error message, you'll have to point me at your page, or give me access to it in some way so that I can look into it.  There is no way to tell otherwise.

In general, the message means what it says, that someone is calling a chart's draw() method without a DataTable or DataView.  Typically, this might happen when using a ChartWrapper, where the DataTable is set either when the ChartWrapper is constructed, or implicitly by setting the dataSourceUrl property, or later by calling the setDataTable() method. 
On Tue, Jul 19, 2016 at 3:23 AM, Ranak Lindor <ranakt...@gmail.com> wrote:
Hey mate, I'm currently having the same problem shown with Youtube analytics. Is there some way for me to fix this? I have zero knowledge of code however, so I'll need a bit of a walk through.

On Thursday, June 30, 2016 at 1:37:19 AM UTC-6, Hoang BaoHa wrote:
Dear all

Dear all

This morning, when I opened the account on Youtube, on Analytics, I saw appear one line like this "You gọi the draw () method with the wrong type of data DataTable or DataView rather than a". This is the first time I encountered this problem, I do not know how to handle?

I hope you help me fix? I'm very worried

Thank you very much

Best Regards

Hoang BaoHa


--
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-visualizati...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--



--

--
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-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.

For more options, visit https://groups.google.com/d/optout.



--

Johannes Tegethoff

unread,
Aug 21, 2018, 3:49:20 AM8/21/18
to Google Visualization API
Hey guys,

I loaded there corechart in my google.load() but it still shows the error when I visit the page the first time. Is there a way to not run in this error anymore?

Thanks!


Am Donnerstag, 21. Juli 2016 21:14:55 UTC+2 schrieb Daniel LaLiberte:
It appears there is a problem with what is in the default packages now, and you may need to load at least 'corechart' in your google.load() call to make the behavior more consistent.  We'll try to fix this for the future, but for now, this is probably the best workaround. 
On Thu, Jul 21, 2016 at 1:14 PM, Jacob Ross <jacobr...@gmail.com> wrote:
Hi Daniel,

I ran into this error trying to view charts in Webmaster Tools > Accelerated Mobile Pages ... Oh wait, I did a hard refresh and my charts came back.

On Wednesday, July 20, 2016 at 11:34:40 AM UTC-7, Daniel LaLiberte wrote:
I am curious if people are still having this problem with calling the draw() method with the wrong type of data, rather than a DataTable or DataView.  My suggestions have been to look into erroneous uses of ChartWrappers.  It is possible that the ChartWrapper now complains more rather than appearing to ignore bad data.  If you are still seeing this problem, especially after the update that finished on July 1, please let me know, and preferably, post a link to a page demonstrating the problem.  Thanks.
On Tue, Jul 19, 2016 at 11:01 AM, Daniel LaLiberte <dlali...@google.com> wrote:
For anyone who wants me to assist with investigating why you are getting this error message, you'll have to point me at your page, or give me access to it in some way so that I can look into it.  There is no way to tell otherwise.

In general, the message means what it says, that someone is calling a chart's draw() method without a DataTable or DataView.  Typically, this might happen when using a ChartWrapper, where the DataTable is set either when the ChartWrapper is constructed, or implicitly by setting the dataSourceUrl property, or later by calling the setDataTable() method. 
On Tue, Jul 19, 2016 at 3:23 AM, Ranak Lindor <ranakt...@gmail.com> wrote:
Hey mate, I'm currently having the same problem shown with Youtube analytics. Is there some way for me to fix this? I have zero knowledge of code however, so I'll need a bit of a walk through.

On Thursday, June 30, 2016 at 1:37:19 AM UTC-6, Hoang BaoHa wrote:
Dear all

Dear all

This morning, when I opened the account on Youtube, on Analytics, I saw appear one line like this "You gọi the draw () method with the wrong type of data DataTable or DataView rather than a". This is the first time I encountered this problem, I do not know how to handle?

I hope you help me fix? I'm very worried

Thank you very much

Best Regards

Hoang BaoHa


--
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+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
--



--

--
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+unsub...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.



--
Reply all
Reply to author
Forward
0 new messages