9
我知道可以通過更改plotOptions.pie.dataLabels.distance將餅圖標籤放在餅圖的內部或外部。我試圖找出是否有可能通過點爲基礎,以改變上的一個點:Highcharts - 餅圖內部和外部的標籤
如果片小於15%,切片內部發生的標籤
其他地方標籤片外
這是可能在Highcharts?下面是我的一個嘗試,這是行不通的;普通的jsfiddle是在這裏:http://jsfiddle.net/supertrue/q6bQP/
plotOptions: {
pie: {
dataLabels: {
distance: -30,
color: 'white',
formatter: function() {
if (this.y < 15) {
this.point.dataLabels.color = 'red';
this.point.dataLabels.distance = 20;
return this.point.name;
} else {
return this.point.name;
}
}
},
你有沒有想出一個解決方案?我正在嘗試做同樣的事情。謝謝 – 2013-07-05 11:01:07
不幸的是,但如果你找出答案,請在這裏發帖。 – supertrue 2013-07-05 14:58:58