Join GitHub today
The last data label has a different class format than the others, when useHTML property is set to true #7287
All data labels have the same CSS class format:
The last data label has a different class format than the others:
It seems it happens from v5.0.13
I see this too, with v5.0.12 I'd get a bar chart with labels having this class structure:
But after switching to v6.0.3 I see
Seems like the inner <div> is now just copying the classes from the outer div, and adding "highcharts-tracker"
I made two jsfiddles with simplified versions of what I'm seeing in my site, check the console output to see the difference between the classes applied to the divs.
I also used some CSS to show the ".highcharts-data-label span" in red, which you see in 5.0.12 but not 6.0.3
@barryp Thank you for the demos.
To sum it up: the last dataLabel div has wrong wrong classes - copied from parent. Compare with other dataLabels to confirm or visually - the last label is not red.
Offending commit: 71c360e