I have created a chart with Highcharts that plots two plotLines, one vertical and one horizontal. I have set their zIndex to 1001 and 1002 respectively to make sure that these lines can be seen above my column series.
Unfortunately, my tooltips appear BENEATH the plotLines, despite setting a higher zIndex property for the tooltips. Is this expected behaviour, and is there a workaround? Thank you in advance.
Picture
PlotLine 1:
plotLines: [{
value: 55,
color: '#ff0000',
width: 1,
zIndex: 1001,
label: {
text: 'Demand',
style: {
fontSize: '11px'
}
}
}]
PlotLine 2:
chart.yAxis[0].addPlotLine({
value: marge,
zIndex: 1002,
color: 'rgb(243,152,20)',
dashStyle: 'solid',
width: 1,
label: {
text: 'Market price: $' + marge + '/bbl'
}
});
Tooltips:
tooltip: {
useHTML: true,
zIndex:2005,
formatter: function () {
if (this.y != 0) {
return '<b>' + this.series.name + '</b><br>Breakeaven : $' + this.y + '/bbl';
} else {
return false;
}
}
},