@贫民窟大侠:
function showPie(){ $.ajax({ type: "get", url: "csylLine.json", async: true, dataType: "json", success:function(data){ $('#pieChart').highcharts({ chart : { plotBackgroundColor : null, plotBorderWidth : null, plotShadow : false, type: 'pie' }, title : { // 标题 text : '城关区一周降雨地区占全城份额比例' }, tooltip : { // 提示框 pointFormat : '{series.name}: {point.percentage:.1f}%' }, plotOptions : { pie : { allowPointSelect : true, cursor : 'pointer', dataLabels : { enabled : false }, showInLegend : true } }, series : [ { // 数据列 name : 'Browser share', data : data.dataList } ], credits:{ // 版权信息 enabled:false } }); }, error:function(err){ alert(err); } }); }