Charts suddenly stopped working in production

927 views
Skip to first unread message

Mael Caldas

unread,
Oct 30, 2014, 1:33:22 PM10/30/14
to google-visua...@googlegroups.com
Hi,

From 15 minutes ago we started getting the error in production:

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

From our Google Docs Add-on that uses Charts API.
The error is intermittent, and, for the same dataset, sometimes works, sometimes not.

Does anybody knows what's happening? Any rollout in progress?

Thanks
Mael

 

Nick Pepperling

unread,
Oct 30, 2014, 1:37:16 PM10/30/14
to google-visua...@googlegroups.com
I'm guessing there must be an API patch being deployed or something.  I am having the same problem as of 15 minutes ago.  I was making some changes to some chart data and it was working and now it is not. Same error.

Daniel LaLiberte

unread,
Oct 30, 2014, 1:47:42 PM10/30/14
to google-visua...@googlegroups.com
Hi Mael and Nick, 

(I meant to post this here rather than in the other thread)

We rolled out a new v40 yesterday, but the rollout itself failed to complete, so we are rolling it back.  There is very likely an inconsistency in the state of the deployed code during this transition, which we would of course like to avoid, but we can't fix that with the current way the code is rolled out and how it is loaded.  This should clear up just be reloading the page, or possibly by clearing your cache if you want a faster update.

--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Mael Caldas

unread,
Oct 30, 2014, 1:55:26 PM10/30/14
to google-visua...@googlegroups.com
Hi Daniel,

It seems to be  working now.

The problem was occurring when using Google Apps Script Charts API (https://developers.google.com/apps-script/reference/charts/), that, in the end, uses Visualization API, right? The Chart rendering happens on Apps Script server side, so we are not in charge of caching. Maybe the Apps Script/Visualization integration was affected...

Thanks,
Mael



--
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/4xhEJzTs_DQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to google-visualizati...@googlegroups.com.

To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
Mael

Chris Graham

unread,
Oct 30, 2014, 3:00:28 PM10/30/14
to google-visua...@googlegroups.com
Our charts are still not working - have you fully reverted back?


On Thursday, October 30, 2014 1:47:42 PM UTC-4, Daniel LaLiberte wrote:
Hi Mael and Nick, 

(I meant to post this here rather than in the other thread)

We rolled out a new v40 yesterday, but the rollout itself failed to complete, so we are rolling it back.  There is very likely an inconsistency in the state of the deployed code during this transition, which we would of course like to avoid, but we can't fix that with the current way the code is rolled out and how it is loaded.  This should clear up just be reloading the page, or possibly by clearing your cache if you want a faster update.
On Thu, Oct 30, 2014 at 1:37 PM, Nick Pepperling <npepp...@gmail.com> wrote:
I'm guessing there must be an API patch being deployed or something.  I am having the same problem as of 15 minutes ago.  I was making some changes to some chart data and it was working and now it is not. Same error.


On Thursday, October 30, 2014 11:33:22 AM UTC-6, Mael Caldas wrote:
Hi,

From 15 minutes ago we started getting the error in production:

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

From our Google Docs Add-on that uses Charts API.
The error is intermittent, and, for the same dataset, sometimes works, sometimes not.

Does anybody knows what's happening? Any rollout in progress?

Thanks
Mael

 

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

George Madrid

unread,
Oct 30, 2014, 3:23:40 PM10/30/14
to google-visua...@googlegroups.com
Hi Chris,

Charts are working for me. Can you provide an example that fails? or a jsfiddle? I can look into it better if you can provide a more specific example.

Thanks.

Chris Graham

unread,
Oct 30, 2014, 3:36:44 PM10/30/14
to google-visua...@googlegroups.com
Hi George, I have a shadow halo around text in the vertical and horizontal axis.  Chris


On Thursday, October 30, 2014 3:23:40 PM UTC-4, George Madrid wrote:
Hi Chris,

Charts are working for me. Can you provide an example that fails? or a jsfiddle? I can look into it better if you can provide a more specific example.

Thanks.



On Thursday, October 30, 2014 3:00:28 PM UTC-4, Chris Graham wrote:
Our charts are still not working - have you fully reverted back?

On Thursday, October 30, 2014 1:47:42 PM UTC-4, Daniel LaLiberte wrote:
Hi Mael and Nick, 

(I meant to post this here rather than in the other thread)

We rolled out a new v40 yesterday, but the rollout itself failed to complete, so we are rolling it back.  There is very likely an inconsistency in the state of the deployed code during this transition, which we would of course like to avoid, but we can't fix that with the current way the code is rolled out and how it is loaded.  This should clear up just be reloading the page, or possibly by clearing your cache if you want a faster update.
On Thu, Oct 30, 2014 at 1:37 PM, Nick Pepperling <npepp...@gmail.com> wrote:
I'm guessing there must be an API patch being deployed or something.  I am having the same problem as of 15 minutes ago.  I was making some changes to some chart data and it was working and now it is not. Same error.


On Thursday, October 30, 2014 11:33:22 AM UTC-6, Mael Caldas wrote:
Hi,

From 15 minutes ago we started getting the error in production:

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

From our Google Docs Add-on that uses Charts API.
The error is intermittent, and, for the same dataset, sometimes works, sometimes not.

Does anybody knows what's happening? Any rollout in progress?

Thanks
Mael

 

--
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.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Chris Graham

unread,
Oct 30, 2014, 3:40:54 PM10/30/14
to google-visua...@googlegroups.com

Have a look at this image.  This happened several weeks ago when you tried to upgrade, then when you reverted back it fixed it again.  Problem just started a few hrs ago.  Are you fully reverted back?  This is happening live in production and we have tested on multiple machines.  Thanks.

George Madrid

unread,
Oct 30, 2014, 3:48:26 PM10/30/14
to google-visua...@googlegroups.com
Hi Chris,

I am not seeing this problem in my tests. 

Can you provide a short code sample that causes the problem or even better would be a jsfiddle?

Thanks,

George

Daniel LaLiberte

unread,
Oct 30, 2014, 3:49:12 PM10/30/14
to google-visua...@googlegroups.com
Chris,

Regardless of whether the rollback has completed, what you are seeing sounds like it is related to a new feature that doesn't work well with your black background.  You can override the auraColor of the axis title and labels to make it 'transparent' like so:

  hAxis: { 
    textStyle: { auraColor: 'transparent' },
    titleTextStyle: { auraColor: 'transparent' }
 }


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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

Chris Graham

unread,
Oct 30, 2014, 3:53:23 PM10/30/14
to google-visua...@googlegroups.com
That is good to know, will look into those settings.

We haven't changed our charts in over 1 yr, why is this just happening now?
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-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton 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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Daniel LaLiberte

unread,
Oct 30, 2014, 4:05:32 PM10/30/14
to google-visua...@googlegroups.com
The Google Charts code that your page loads gets updated over time.  There have been half a dozen updates since a year ago.  We do try to keep things working backward compatibly.  I'm not sure what we will do about this problem; it depends on how many other charts end up looking bad, and whether an explicit change of the auraColor can resolve the problems.  The advantage is that in the usual case, text will be more visible independent of the background.  


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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

cyb

unread,
Oct 30, 2014, 4:15:14 PM10/30/14
to google-visua...@googlegroups.com
HI,

my charts are still not working i use a ChartWrapper and i get several different google-visualization-errors "One ore more paticipations failed to draw()"..

thats really bad.

Chris Graham

unread,
Oct 30, 2014, 4:16:05 PM10/30/14
to google-visua...@googlegroups.com
I tried the setting on dev and  auraColor: 'transparent' or  auraColor: 'none' both do the trick - thanks.  As of this new release if auraColor is on by default I assume many people are going to have this issue, no?

Sergey Grabkovsky

unread,
Oct 30, 2014, 4:17:16 PM10/30/14
to google-visua...@googlegroups.com
Hi cyb,

We apologize for the inconvenience that this is causing you. Could you please provide a link to a failing case so that we may investigate and fix the issue? If you are concerned about posting a link to your website on a public forum, you can feel free to email me personally at grabks <at> google.com

--
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.

Sergey Grabkovsky

unread,
Oct 30, 2014, 4:23:14 PM10/30/14
to google-visua...@googlegroups.com
Chris,

This change only affects people who have charts with a non-white background. I don't have any numbers, but I would assume it's a small fraction of people. We largely think that this change makes things better, but if enough people complain, we will change it back to the way it was.

On Thu Oct 30 2014 at 4:17:12 PM Sergey Grabkovsky <gra...@google.com> wrote:
Hi cyb,

We apologize for the inconvenience that this is causing you. Could you please provide a link to a failing case so that we may investigate and fix the issue? If you are concerned about posting a link to your website on a public forum, you can feel free to email me personally at grabks <at> google.com

On Thu Oct 30 2014 at 4:15:16 PM cyb <3p...@gmx.de> wrote:
HI,

my charts are still not working i use a ChartWrapper and i get several different google-visualization-errors "One ore more paticipations failed to draw()"..

thats really bad.

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

Chris Graham

unread,
Oct 30, 2014, 4:27:40 PM10/30/14
to google-visua...@googlegroups.com
I don't think you can assume only a small fraction of people don't use "white" backgrounds.  Are you reverting back or not?  I need to know, because if not I have several hours of script updating to do in our production environment that will be challenging.  Thanks.


On Thursday, October 30, 2014 4:23:14 PM UTC-4, Sergey wrote:
Chris,

This change only affects people who have charts with a non-white background. I don't have any numbers, but I would assume it's a small fraction of people. We largely think that this change makes things better, but if enough people complain, we will change it back to the way it was.

On Thu Oct 30 2014 at 4:17:12 PM Sergey Grabkovsky <gra...@google.com> wrote:
Hi cyb,

We apologize for the inconvenience that this is causing you. Could you please provide a link to a failing case so that we may investigate and fix the issue? If you are concerned about posting a link to your website on a public forum, you can feel free to email me personally at grabks <at> google.com

On Thu Oct 30 2014 at 4:15:16 PM cyb <3p...@gmx.de> wrote:
HI,

my charts are still not working i use a ChartWrapper and i get several different google-visualization-errors "One ore more paticipations failed to draw()"..

thats really bad.

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

cyb

unread,
Oct 30, 2014, 5:44:18 PM10/30/14
to google-visua...@googlegroups.com
Hi,

i run it at the moment only local.. but i need this for a very important presentation in the near future and not one chart is working with my configuration :(

i seems the problem is the catecory filter or the dashboard that i use.. if i only use "$scope.chartWrapper.draw();" it shows my charts..

but with the categoryFilter or dashboard it is not working:

mit category filter looks like this:

 $scope.categoryPicker = new google.visualization.ControlWrapper({
                         'controlType': 'CategoryFilter',
                         'containerId': 'control1',
                         'options': {
                             'filterColumnIndex': $scope..chartValues.xValues[0],
                             'useFormattedValue': true,
                             'ui': {
                                 'allowTyping': false,
                                 'allowMultiple': true,
                                 'selectedValuesLayout': 'belowStacked',
                                 'labelStacking': 'vertical',
                                 'cssClass': 'google-visualization-controls-categoryfilter testgoogleclass'
                             }
                         },
                         // Define an initial state, i.e. a set of metrics to be initially selected.
                         'state': {'selectedValues': $scope....chartValues.categoryFilter}
                     });

and then i do this:

 $scope.dashboard = new google.visualization.Dashboard(document.getElementById('dashboard')).
                            bind($scope.categoryPicker, chartWrapper);

and finally:

$scope.dashboard.draw(DataTable);



Am Donnerstag, 30. Oktober 2014 21:17:16 UTC+1 schrieb Sergey:
Hi cyb,

We apologize for the inconvenience that this is causing you. Could you please provide a link to a failing case so that we may investigate and fix the issue? If you are concerned about posting a link to your website on a public forum, you can feel free to email me personally at grabks <at> google.com

On Thu Oct 30 2014 at 4:15:16 PM cyb <3p...@gmx.de> wrote:
HI,

my charts are still not working i use a ChartWrapper and i get several different google-visualization-errors "One ore more paticipations failed to draw()"..

thats really bad.

--
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.

cyb

unread,
Oct 30, 2014, 5:57:18 PM10/30/14
to google-visua...@googlegroups.com
HI,

ok it seems the problem is the category filter.. i got the following message:

Failed to execute 'add' on 'DOMTokenList': The token provided ('google-visualization-controls-categoryfilter testgoogleclass') contains HTML space characters, which are not valid in tokens.×

ttttt
the testgoogleclass loks loke this:

.testgoogleclass ul {
max-width: 100% !important;
}

how can i solve this ?

cyb

unread,
Oct 30, 2014, 6:06:45 PM10/30/14
to google-visua...@googlegroups.com
Hi,

ok my css class cause the problems.. without the css code it works !

testgoogleclass ul {
max-width: 100% !important;
}

if i use this in the categoryFilter it produces an error:
Failed to execute 'add' on 'DOMTokenList': The token provided ('google-visualization-controls-categoryfilter testgoogleclass') contains HTML space characters, which are not valid in tokens.×

$scope.categoryPicker = new google.visualization.ControlWrapper({
                         'controlType': 'CategoryFilter',
                         'containerId': 'control1',
                         'options': {
                             'filterColumnIndex': $scope..chartValues.xValues[0],
                             'useFormattedValue': true,
                             'ui': {
                                 'allowTyping': false,
                                 'allowMultiple': true,
                                 'selectedValuesLayout': 'belowStacked',
                                 'labelStacking': 'vertical',
                                 'cssClass': 'google-visualization-controls-categoryfilter testgoogleclass'
                             }
                         },
                         // Define an initial state, i.e. a set of metrics to be initially selected.
                         'state': {'selectedValues': $scope....chartValues.categoryFilter}
                     });

how can i solve this ? i need this css file, to get the the full width of the categoryfilter buttons!

Daniel LaLiberte

unread,
Oct 30, 2014, 11:42:29 PM10/30/14
to google-visua...@googlegroups.com
Cyb,

You have found an inconsistency with previous behavior, though I am not yet sure whether it qualifies as a bug.  It used to be that the cssClass option (for the CategoryFilter anyway) would allow spaces in the value separating more than one css class name.  The latest version breaks that behavior and now you are only allowed to use a single class name.  

Have you tried just specifying your testgoogleclass?  Like this:

   'cssClass': 'testgoogleclass'

I believe your cssClass will be added to the elements 'class' attribute rather than replace it, so you shouldn't need to include the google-visualization-controls-categoryfilter class yourself.


--
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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

cyb

unread,
Oct 31, 2014, 5:10:11 AM10/31/14
to google-visua...@googlegroups.com
Hi,

this is not working if i add only my css-class it shows me only text and not a button.

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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton MA

Daniel LaLiberte

unread,
Oct 31, 2014, 10:13:17 AM10/31/14
to google-visua...@googlegroups.com
I see the problem.  The cssClass does replace the google-visualization-controls-categoryfilter class rather than add to it.  The documentation for the cssClass does say: "The CSS class to assign to the control, for custom styling."  So I was incorrect to suggest the cssClass would be added rather than replace the default.   

In your case, you can workaround this, and arguably do it better anyway, by not using the cssClass option and instead just specify your css selector with the default class, like so:

.google-visualization-controls-categoryfilter ul {
max-width: 100% !important;
}

I'm still not sure we have a bug, but I do think we should find a better way to facilitate customization without requiring you to rewrite the entire CSS for the control.


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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlaliberte@Google.com   5CC, Cambridge MA
daniel.laliberte@GMail.com 9 Juniper Ridge Road, Acton MA

cyb

unread,
Oct 31, 2014, 12:56:11 PM10/31/14
to google-visua...@googlegroups.com
Hi,

i will try this fix later. But i have another problem. The map-chart did not work. if i try to draw a map chart i get this error:

Object {id: "google-visualization-errors-0", message: "#<HTMLDivElement> is not iterable"}

have you changed something on the maps chart in Version 38-40 ? and is now version 40 the actual google chart version ?
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-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.



--
dlali...@Google.com   5CC, Cambridge MA
daniel.l...@GMail.com 9 Juniper Ridge Road, Acton 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 google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.

Sergey Grabkovsky

unread,
Oct 31, 2014, 1:20:22 PM10/31/14
to google-visua...@googlegroups.com
Hi Cyb,

Could you reproduce this issue in a jsfiddle? There shouldn't have been any breaking changes to Maps.

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages