Google chart loading message

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

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





        
4条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-09 11:07

    Does Google Charts clear the chart div on load?

    /* style.css */
    .preloader {
        height:350px; background:url(../images/spinner.gif) center center no-repeat;
    }
    

    Set the height of the preloader equal to the resulting chart.

    
    
     

    If it doesn't clear the preloader, you should add a callback on chart load to clear it.

提交回复
热议问题