plotLine labels do not work in browsers that support Array.prototype.flat() #8477
Labels
Comments
Hi @cers, Internal note |
Can confirm this is also an issue in version 5.0.11 in Chrome 69. |
Hi @cfarm, |
WorkaroundHere's a workaround for those who can't update Highcharts for some reason: // Drop-in fix for Highcharts issue #8477 on older Highcharts versions. The
// issue is fixed since Highcharts v6.1.1.
Highcharts.wrap(Highcharts.Axis.prototype, 'getPlotLinePath', function(proceed) {
var path = proceed.apply(this, Array.prototype.slice.call(arguments, 1));
if (path) {
path.flat = false;
}
return path;
}); View it live on jsFiddle. |
I required a null check for |
Thanks, I added an |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The issue comes from line
highcharts/js/parts/PlotLineOrBand.js
Line 153 in 7e30b14
I'm not sure what that "if" is testing for, but that attribute will probably have to be renamed...
Expected behaviour
plotLine labels should show up.
Actual behaviour
plotLine labels do not show up.
Live demo with steps to reproduce
http://jsfiddle.net/cers/whzeL2um/
Product version
Highcharts 6.1.0 (I haven't checked the others)
Affected browser(s)
Firefox 62
Chrome 69
The text was updated successfully, but these errors were encountered: