Strange Chart Loading / Not Loading Behavior Today

180 views
Skip to first unread message

Benjamin Fisher

unread,
Jun 10, 2017, 2:40:39 PM6/10/17
to Google Visualization API
A few days ago I was messing with my first test of Google Charts.

I created a test.html and testMulti.html displaying some utilization and capacity over time for VMware datastores, using curved line graphs. Worked great. I viewed them on a dedicated VDI desktop (Citrix) I use for work.

Today I created some new charts, with different filenames.

None of them show up. They all show up in the table I made as properly sized blocks but none of the chart date shows.

I go back to my previous test.html and testMulti.html and those still show up fine.

I copy-paste the HTML exactly from test.html into my new file. It still doesn't show up but the test.html still loads fine.

Next, I backup test.html, rename the new file test.html instead. It loads. I haven't yet checked if I change the data in the HTML file if the chart will update or not.

This all still on the same VDI desktop.

FYI: If I copy/paste the HTML of the new file into a file on my actual desktop machine, with its original name, it loads just fine. If I copy it to a new filename it works.

I have just cleared my cache in my browser on my VDI desktop. No change. I still can't load the new file.

The behavior however is the same in various browsers... it does not load.

Any thoughts as to what is going on here?

Daniel LaLiberte

unread,
Jun 10, 2017, 2:53:28 PM6/10/17
to Google Visualization API
The loader was changed, as announced last week.  All versions (on gstatic.com) could potentially be affected, but the versions are otherwise the same.  

Can you give us the details of how you are loading?  Better yet, point us at an example web page that shows the failure.  

The docs on how to load Google Charts are here: https://developers.google.com/chart/interactive/docs/basic_load_libs

--
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.
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/4e5f59eb-1ba7-4c97-ab49-2cf02bc7a1ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Benjamin Fisher

unread,
Jun 10, 2017, 3:10:45 PM6/10/17
to Google Visualization API
The files are not hosted on a web server at this time.

I just wrote these a few days ago and I used the documentation you referenced when initially creating them, not examples from, say, a random Google search or anything.

For simplicity, let's call my tests from a few days ago "test.html" and my newer ones generated today "datastore.html".

Both test.html and datastore.html load / are coded in precisely the same way, just with different data and a different number of charts, but both are multiple chart pages.

Keep in mind, I can copy the HTML code exactly from test.html into datastore.html and the datastore.html still won't load in the browser. Blank chart box.

The code looks something like this - https://pastebin.com/4CWc1PKu

Like I said if I copy that to my desktop the files load fine, but not on the VDI machine. Something strange going on there.

On Saturday, June 10, 2017 at 1:53:28 PM UTC-5, Daniel LaLiberte wrote:
The loader was changed, as announced last week.  All versions (on gstatic.com) could potentially be affected, but the versions are otherwise the same.  

Can you give us the details of how you are loading?  Better yet, point us at an example web page that shows the failure.  

The docs on how to load Google Charts are here: https://developers.google.com/chart/interactive/docs/basic_load_libs
On Sat, Jun 10, 2017 at 2:40 PM, Benjamin Fisher <kur...@gmail.com> wrote:
A few days ago I was messing with my first test of Google Charts.

I created a test.html and testMulti.html displaying some utilization and capacity over time for VMware datastores, using curved line graphs. Worked great. I viewed them on a dedicated VDI desktop (Citrix) I use for work.

Today I created some new charts, with different filenames.

None of them show up. They all show up in the table I made as properly sized blocks but none of the chart date shows.

I go back to my previous test.html and testMulti.html and those still show up fine.

I copy-paste the HTML exactly from test.html into my new file. It still doesn't show up but the test.html still loads fine.

Next, I backup test.html, rename the new file test.html instead. It loads. I haven't yet checked if I change the data in the HTML file if the chart will update or not.

This all still on the same VDI desktop.

FYI: If I copy/paste the HTML of the new file into a file on my actual desktop machine, with its original name, it loads just fine. If I copy it to a new filename it works.

I have just cleared my cache in my browser on my VDI desktop. No change. I still can't load the new file.

The behavior however is the same in various browsers... it does not load.

Any thoughts as to what is going on here?

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



--

Benjamin Fisher

unread,
Jun 10, 2017, 5:42:38 PM6/10/17
to Google Visualization API
Now I'm seeing the issue trying from my personal desktop that was working before. The HTML looks fine to me but the charts don't load currently. Odd.

Benjamin Fisher

unread,
Jun 10, 2017, 6:10:00 PM6/10/17
to Google Visualization API
I just also took out the jsapi and left only loader.js with using:

google.charts.load('current', {'packages':['corechart']});

But it hasn't helped.


On Saturday, June 10, 2017 at 1:53:28 PM UTC-5, Daniel LaLiberte wrote:
The loader was changed, as announced last week.  All versions (on gstatic.com) could potentially be affected, but the versions are otherwise the same.  

Can you give us the details of how you are loading?  Better yet, point us at an example web page that shows the failure.  

The docs on how to load Google Charts are here: https://developers.google.com/chart/interactive/docs/basic_load_libs
On Sat, Jun 10, 2017 at 2:40 PM, Benjamin Fisher <kur...@gmail.com> wrote:
A few days ago I was messing with my first test of Google Charts.

I created a test.html and testMulti.html displaying some utilization and capacity over time for VMware datastores, using curved line graphs. Worked great. I viewed them on a dedicated VDI desktop (Citrix) I use for work.

Today I created some new charts, with different filenames.

None of them show up. They all show up in the table I made as properly sized blocks but none of the chart date shows.

I go back to my previous test.html and testMulti.html and those still show up fine.

I copy-paste the HTML exactly from test.html into my new file. It still doesn't show up but the test.html still loads fine.

Next, I backup test.html, rename the new file test.html instead. It loads. I haven't yet checked if I change the data in the HTML file if the chart will update or not.

This all still on the same VDI desktop.

FYI: If I copy/paste the HTML of the new file into a file on my actual desktop machine, with its original name, it loads just fine. If I copy it to a new filename it works.

I have just cleared my cache in my browser on my VDI desktop. No change. I still can't load the new file.

The behavior however is the same in various browsers... it does not load.

Any thoughts as to what is going on here?

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



--

Daniel LaLiberte

unread,
Jun 10, 2017, 11:15:49 PM6/10/17
to Google Visualization API
I converted your example into this jsfiddle:  https://jsfiddle.net/9gwnguv3/
And it appears to work fine.  Indeed, the jsapi code should not be loaded, though if you don't call google.load or google.setOnLoadCallback, it shouldn't make any difference.

Hard to tell what might be happening with your version that is broken, but if you can look in the browser debugger to see if there are any error messages, that might help. I don't know that I can help much otherwise.

On Sat, Jun 10, 2017 at 6:10 PM, Benjamin Fisher <kur...@gmail.com> wrote:
I just also took out the jsapi and left only loader.js with using:

google.charts.load('current', {'packages':['corechart']});

But it hasn't helped.

On Saturday, June 10, 2017 at 1:53:28 PM UTC-5, Daniel LaLiberte wrote:
The loader was changed, as announced last week.  All versions (on gstatic.com) could potentially be affected, but the versions are otherwise the same.  

Can you give us the details of how you are loading?  Better yet, point us at an example web page that shows the failure.  

The docs on how to load Google Charts are here: https://developers.google.com/chart/interactive/docs/basic_load_libs
On Sat, Jun 10, 2017 at 2:40 PM, Benjamin Fisher <kur...@gmail.com> wrote:
A few days ago I was messing with my first test of Google Charts.

I created a test.html and testMulti.html displaying some utilization and capacity over time for VMware datastores, using curved line graphs. Worked great. I viewed them on a dedicated VDI desktop (Citrix) I use for work.

Today I created some new charts, with different filenames.

None of them show up. They all show up in the table I made as properly sized blocks but none of the chart date shows.

I go back to my previous test.html and testMulti.html and those still show up fine.

I copy-paste the HTML exactly from test.html into my new file. It still doesn't show up but the test.html still loads fine.

Next, I backup test.html, rename the new file test.html instead. It loads. I haven't yet checked if I change the data in the HTML file if the chart will update or not.

This all still on the same VDI desktop.

FYI: If I copy/paste the HTML of the new file into a file on my actual desktop machine, with its original name, it loads just fine. If I copy it to a new filename it works.

I have just cleared my cache in my browser on my VDI desktop. No change. I still can't load the new file.

The behavior however is the same in various browsers... it does not load.

Any thoughts as to what is going on here?

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



--

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

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



--

Benjamin Fisher

unread,
Jun 11, 2017, 2:21:39 AM6/11/17
to Google Visualization API
I also made a jfiddle which worked fine. But still having issues in the browser. I'll see if I can find out more.

Benjamin Fisher

unread,
Jun 11, 2017, 6:48:59 PM6/11/17
to Google Visualization API
Chrome developer tools' console shows two errors:

loader.js:1 Uncaught SyntaxError: Invalid or unexpected token

datastore.html:6 Uncaught ReferenceError: google is not defined
    at datastore.html:6

Line 6 is: google.charts.load('current', {'packages':['corechart']});

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.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-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.



--

Benjamin Fisher

unread,
Jun 11, 2017, 7:03:06 PM6/11/17
to Google Visualization API
I think have some kind of weird unicode / format problem with the Powershell / PowerCLI generating these HTML files. /sigh/

The loader.js shows like the below in dev tools...

Daniel LaLiberte

unread,
Jun 11, 2017, 7:36:11 PM6/11/17
to Google Visualization API
That is weird.  I've never seen such a thing.  I wonder if there is a language setting in your browser that is causing this somehow.  Maybe someone else has seen similar behavior for other languages. ?

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.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-visualization-api+unsubscr...@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-visualization-api@googlegroups.com.

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



--

Benjamin Fisher

unread,
Jun 11, 2017, 10:45:25 PM6/11/17
to Google Visualization API
Pretty standard Chrome. I am in the US. I don't THINK I have a language setting in the browser that would be causing this. I'm set to English. English is the only language in the browser settings.

I think Powershell is creating a zero-width space unicode character at the beginning or end of my file and it is causing problems of some sort. It appears that Powershell's Out-File defaults to Unicode.


I just used some Linux commands on the HTML files being generated and there's some unicode nastiness in there.

I'll know for sure later tonight. I'm setting my Out-File from Powershell to encode with ASCII instead of their default of Unicode.

That all makes more sense with what we were seeing and our success with things like jfiddle because of the copy/paste from editor to website.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.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-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.



--

Benjamin Fisher

unread,
Jun 11, 2017, 11:16:44 PM6/11/17
to Google Visualization API
That was it. This seems to be resolved. Thanks for helping me look at it!

Daniel LaLiberte

unread,
Jun 12, 2017, 1:30:34 AM6/12/17
to Google Visualization API
Good to hear. 

So was it just a coincidence that the change of the loader happened at the same time as this problem with Powershell?  Or was there something different about the loader that exposed the problem? 

To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsubscr...@googlegroups.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-visualization-api+unsubscr...@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+unsubscr...@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-visualization-api@googlegroups.com.

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



--
Reply all
Reply to author
Forward
0 new messages