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
Source: stackoverflow.com
Related Articles
- Highcharts | Line height control for plot band labels in styled mode
- Highcharts - how to set line height in multiline annotations labels in styled mode
- Highcharts tooltip line height in styled mode
- Highcharts pie labels outline mising using styled mode
- Highcharts Plot Reciprocal Values For Column Height
- Highcharts shared tooltip for line series and scatter plot not working
- Highcharts scatter plot with variable line width
- How to plot line in highcharts on charts click event?
- Highcharts - CUSTOM DATA LABELS in line series, are disappearing on window resize
- How to stop Highcharts y-Axis bar-chart labels being skipped when height is small?
- Make highcharts bar-chart threshold line visible & labels not to overlap on one another
- Highcharts - How to plot a X axis line on my bell curve (Standard Deviation Curve)
- Highcharts Pie chart multi line labels overlapping
- Highcharts Grid Line Height Below Spline
- plot area width and height in HighCharts
- Highcharts - Hiding plot line behind plot label
- Highcharts specify height of plot area only
- Disabling inactive state in Highcharts styled mode
- Display series labels at the end of each line in Highcharts Editor
- Prevent label text wrapping in Highcharts styled mode
- Cannot get Highcharts solidgauge stops to work in styled mode
- Display labels in Highcharts 3D scatter plot
- Highcharts Display Xaxis plot line
- How to add vertical (and horizontal) line in highcharts scatter plot
- How do I plot the x axis line using Highcharts when pegged at 0?
- Highcharts how to make legends as data labels on scatter plot
- Adding Date Labels to a HighCharts line graph
- Using a plot line comparator in Highcharts
- Incorrectly displayed plot band icon in Highcharts
- Highcharts yAxis labels inside plot area and left padding
- Changing X axis type from category to datetime on drilldown
- How do I prevent from falling out bubble in highcharts?
- Highcharts - init with different vertical/horizontal config based on browser width, also after resize
- get highcharts data from table angularjs
- How can I group the yAxis of a HighStock Chart by Month Only Using (Millisecond) Time-Stamps?
- How do I force HighCharts to label every column?
- Highcharts addPoint does not draw line in sequence of provided data
- In angular, how do I access a class method from component.ts?
- Live data from MySQL with highchart
- pie chart in highchart with dynamic data
- Convert group json for Highcharts Donut chart
- Having trouble passing data to Highcharts
- Multilevel drilldown in piechart
- HighCharts : Is it possible to customize the colors of individual series?
- Set minimum data interval for y axes on Highcharts
- Displaying a chart using Highcharts
- problem Highchart Show/Hide data label on hover legend
- Is it possible to load Highcharts options from a file?
- why HighChart is not visible in asp.net
- Highcharts plot markers move behind spline graph animation