Google chart loading message

前端 未结 4 1108
轮回少年
轮回少年 2021-02-09 10:08

I have the following script which works, but has one annoying issue:





        
4条回答
  •  故里飘歌
    2021-02-09 11:12

    Put the script at the bottom of the HTML file. This won't do a loading screen, but this will prevent the browser from blocking while the chart loads.

    To get a loading effect, Google's Charts will overwrite the innerHTML of the div you're pointing it to, so you can keep a loading message in there (in whatever format you desire) and it will get overwritten when the chart loads.

提交回复
热议问题