javascript - JS - Google charts - Cannot read property 'getChartLayoutInterface' of undefined -
i've encountered issue in i'm given console error of: cannot read property 'getchartlayoutinterface' of undefined i've read on other questions , i've seen it's because google vizulation api has not loaded, code following: <script type="text/javascript"> // load visualization api , piechart package. google.charts.load('current', {'packages':['corechart']}); // set callback run when google visualization api loaded. google.charts.setonloadcallback(drawchart); function drawchart() { var jsondata = $.ajax({ url: "assets/main/getfrontdata.php", datatype: "json", async: false, type: 'post', }).responsetext; var data = new google.visualization.datatable(jsondata); var options = { backgroundcolor: 'none', linewidth: 4,...