Faced with a problem of highlighting labels in the line chart.
I found here a similar theme Bold X-Axis Label on Point Hover in Highcharts Column Chart, but it's not suitable (didn't find any information about xAxis[0].labelGroup in that case). Also there's no information in documentation
Highlight labels on xAxis on point hover effect, and it should highlight the closest one. Type of the axis is datetime, and the interval is 6 hours
My example: https://jsfiddle.net/sjapdya6/
I was trying to use:
mouseOver: function() {
$($('.customLabel')[this.x]).addClass('customLabelSelected');
}
Adding these classes:
<style>
.customLabel {
color: #00FF00;
background-color: rgba(10, 10, 90, 0.8);
}
.customLabelSelected {
color: #FF0000;
}
</style>
But it doesn't work properly. Does anybody know how to achieve this?
Many thanks in advance