在我的应用程序中,我在图表中显示了谷歌分析。这是我下载分析 api 的链接:http: //mikhailkozlov.com/how-to-show-analytics-data-with-google-chart-tools/
这是代码:
<script src="<?php echo base_url();?>js/chart.js" type="text/javascript"></script>
<script type="text/javascript">
$("#chart").drawChart({uri:'<?php echo base_url();?>js/_ga.php'});
</script>
html代码:
<div id="chart" style="height:300px; width:940px; padding:0; color:#258cd1" class="visits bars last_30"></div>
当此加载图表在火灾错误中出现错误时:
"NetworkError: 400 Bad Request - http://chart.apis.google.com/chart?cht=bvs&chxt=y,x&chbh=a,5,10&chs=0x0&chco=258cd1&chg=0,10,0,0&chts=676767,11&chds=0,25&chxr=0,0,25|1,0,31&chd=t:0,0,0,0,0,0,0,0,1,5,3,2,15,0,2,7,12,0,11,12,0,8,8,3,4,7,2,0,10,3,0&chxl=1:|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30|31|01|02|03|04|05|06|07"