Alexander Gladysh
Alexander Gladysh

Reputation: 41383

Google Visualization Charts API examples are broken, how to fix them?

See this page, for example: https://developers.google.com/chart/interactive/docs/quick_start

Depending on a browser we see one of errors as follows:

JSFiddle examples linked from the documentation and attempts to work with charts manually fail with the same diagnostics.

Is there any way to work around this?

Upvotes: 6

Views: 2046

Answers (1)

Alexander Gladysh
Alexander Gladysh

Reputation: 41383

Seems to be a bad release (v44). Until it is fixed, the workaround is to explicitly specify previous version of the API to load instead of using current:

-     google.charts.load('current', {'packages':['gantt']});
+     google.charts.load('43', {'packages':['gantt']});

Please note that this will indeed freeze your charts version and you will not get new features and bugfixes unless you will revert the changes.

Upvotes: 13

Related Questions