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

后端 未结 1 571
长情又很酷
长情又很酷 2020-11-29 12:37

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:

相关标签:
1条回答
  • 2020-11-29 12:56

    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.

    0 讨论(0)
提交回复
热议问题