展示:
去掉白邊,在
plotOptions.pie.dateLabels加入style:
plotOptions: { pie: { allowPointSelect: true,//每個扇塊能否選中 cursor: 'pointer',//鼠標指針 depth: 50,//餅圖的厚度 dataLabels: { enabled: true,//是否顯示餅圖的線形tip formatter: function() { //設置字體與引導線和餅圖顏色一致 return '<p style="color:'+ this.color+'">'+ this.point.name +'</p><br><p style="color:'+ this.color+'">'+ (this.percentage).toFixed(1)+'%</p>'; }, style: { textOutline: 'none' //去掉文字白邊 } } } },