使renderer.label响应Highcharts

时间:2017-07-27 03:02:12

标签: highcharts highstock

这与我以前的帖子(Add design to plotLabel Highcharts)有关,有没有办法让renderer.label响应?请参阅下面的截图,了解更多详情。这是jsfiddle http://jsfiddle.net/x8vhp0gr/

enter image description here

 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);

0 个答案:

没有答案
相关问题