这与我以前的帖子(Add design to plotLabel Highcharts)有关,有没有办法让renderer.label响应?请参阅下面的截图,了解更多详情。这是jsfiddle http://jsfiddle.net/x8vhp0gr/
plotlabel = yAxis.plotLinesAndBands[0].label;
plotbandLabel.animate({
y: yAxis.toPixels(y) - labelOffset
}, {
duration: 400,
step: function() {
this.attr({
text: yAxis.toValue(this.y + labelOffset).toFixed(2)
})
},
complete: function() {
this.attr({
text: y.toFixed(2)
})
}
}),
plotLine.animate({
translateY: newY
}, 400);