Trying to load Google charts through a jQuery ajax call

前端 未结 3 2075
南旧
南旧 2021-01-21 18:53

Originally posted this here: Trying to load Google charts through a (jQuery)ajax call but have modified my code a bit but I still can\'t get it to work properly.

I am t

3条回答
  •  野的像风
    2021-01-21 19:21

    Your original code:

    google.load('visualization', '1.0', {'packages':['corechart']}); // Load the Visualization API and the piechart package.
    

    add one more parameter and it should be OK:

    google.load('visualization', '1.0', {'packages':['corechart'], **"callback": drawChart**});
    

提交回复
热议问题