charts加载不上,是因为charts有画图的那个动作,所以需要去掉那个动画效果,具体代码如下。
plotOptions: {
pie: {
size:'80%',
allowPointSelect: true,
showInLegend: true,
cursor: 'pointer',
dataLabels: {
distance: -10,
enabled: true,
format: '<b>{point.name}</b>: {point.percentage:.1f} %',
style: {
color: (Highcharts.theme && Highcharts.theme.contrastTextColor) || 'black'
}
}
},
series: { enableMouseTracking: false, shadow: false, animation: false }
},
红色为关键代码。。