解決方法:
打開 highcharts.src.js
找到
/**
* Override the base drawDataLabels method by pie specific functionality
*/
drawDataLabels: function () { ...
在底下的
for (pos = centerY - radius - distanceOption; pos <= centerY + radius + distanceOption; pos += labelHeight) {
slots.push(pos);
}
改為
if (labelHeight == 0)
labelHeight = halves[0][0].dataLabel.height;
for (pos = centerY - radius - distanceOption; pos <= centerY + radius + distanceOption; pos += labelHeight) {
slots.push(pos);
}
在網頁中加入引用 highcharts.src.js
沒有留言:
張貼留言