score:1

Accepted answer

in this case, you need to wrap highcharts.plotlineorband.prototype render function. check the following code and demo:

(function(h) {
   h.wrap(h.plotlineorband.prototype, 'render', function(proceed) {
     proceed.apply(this, array.prototype.slice.call(arguments, ));

     const label = this.label;

     if (label) {
       label.css({
         lineheight: label.alignoptions.style.lineheight
       })
     }

   });
 }(highcharts));

more about extending highcharts: https://www.highcharts.com/docs/extending-highcharts/extending-highcharts

demo: https://jsfiddle.net/blacklabel/nsg5abhq/


Related Query

More Query from same tag