關於highcharts中3d餅圖指示文字帶白邊問題


展示:

 

去掉白邊,在

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'        //去掉文字白邊
 }
                            }
                        }
                    },

 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM