google / google-visualization-issues

288 stars 35 forks source link

Uncaught Error: one or more fonts could not be loaded. #2528

Open Tuisto59 opened 7 years ago

Tuisto59 commented 7 years ago

Hello, Since one moment I have this error,

I don't know if because I'm not in my home, and I use a wifi connection provided in the home of my friend so,

Since one moment I not able to see one type of google charts for exemple I can see diff pie google chart but not "material google chart" (columns, bar, ..) from google charts, I use google chrome, I'm in windows 8, everything get well, some charts can appears, some other not... and I can't understand, maybe they're some conflict between kind of charts ? I also copy past the HTML code in the JSFiddle and it's works, and all the charts are loaded.

the saved link https://jsfiddle.net/g23fzs33/

I get this error for all charts doesnt loaded :

www.gstatic.com/charts/45.2/js/jsapi_compiled_ui_module.js:182 
Uncaught Error: one or more fonts could not be loaded.
at Object.fontinactive (www.gstatic.com/charts/45.2/js/jsapi_compiled_ui_module.js:182)
at L (webfont.js:32)
at T.ha (webfont.js:37)
at S (webfont.js:36)
at pa (webfont.js:36)
at na.<anonymous> (webfont.js:36)

I found same error at stackoverflow but nothing to help me because the answer doesnt have any sense for me because I have the head tag

https://stackoverflow.com/questions/32028786/google-charts-api-uncaught-error-one-or-more-fonts-could-not-be-loaded

I have the HTML code with the Javascripts code inside :

https://jsfiddle.net/g23fzs33/

All the charts are show but for me, in my browser and in my computer , only the first are showed, for that I think they're maybe a conflict.

Also I tried with a full example charts of google charts and it doesnt show anything... https://developers.google.com/chart/interactive/docs/gallery/columnchart#creating-material-column-charts

Can you help me ?

Thanks a lot !

Yoan BOUZIN

EDIT : I switch on Linux (I have a dual boot) I open Firefox, make a html file with the charts example and its work correctly, but not in my windows.

dlaliberte commented 7 years ago

Your jsfiddle examples seem to be working fine for me.

I would suspect caching might be involved in the errors you see, since, in the past, there were some instances of the webfontloader that caused problems like what you reported when you draw more than one of the material charts.