Google chart loading message

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

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





        
4条回答
  •  渐次进展
    2021-02-09 10:49

    I would use an onload handler to call the chart functions. It should wait for the page to load, then add the chart.

    $(function(){
        google.load("visualization", "1", {packages:["corechart"]});
        google.setOnLoadCallback(drawChartAjax);
    });
    

    If this doesn't work, perhaps you could add a load handler to the footer div.

提交回复
热议问题