前台
var data2=new Array(new Array(),new Array());//饼状图的数据时二维数组--------------------------------------------------------------
var chart2 = new Highcharts.Chart({
// $('#container2').highcharts({
chart: {
renderTo:'container2',
type: 'pie',
plotBackgroundColor: null,
plotBorderWidth: null,
plotShadow: false
},
title: {
text: '损耗率'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: 'pointer',
dataLabel