Using setData doesn't recalculate the text color correct on a Heatmap #6171
Comments
Thanks for reporting! Internal Note: Simplified demo. Seems like perhaps the Point.update is not updating data label color. |
You're welcome, and thanks for the simplified demo. I tried to keep it as close as to my environment thinking that it might be something related to a dojo integration, but looks like it is not. Thanks again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello everyone, I have a very complex Heatmap graph and I've found what I think is a bug on how Highcharts choose the text color to use. My heatmap uses a colorAxis with dataclasses, falt colors based on value. The data can change programatically.
Based on the colors of the cell, Highcharts choose if the text color will be white or black. But, that only happens on creating the chart, if you update it, it doesn't recalculate the color. And that, in my case, makes some font transparent (I'm removing the textOutline, if you keep it, you will see that the fill is still unchanged)
Expected behaviour
When you uset series.setData to change the values, it should re-choose the text-color.
Actual behaviour
The text-color of a cell is always the one decided on the first load.
Best behaviour
Besides fixing for the actual behaviour, ideally we should be able to pass the value of the text color we want to use
Live demo with steps to reproduce
https://jsfiddle.net/yohanleafheart/nskpmstL/
Affected browser(s)
Tested on Chromium and Firefox
Using Highcharts 4.2.6
The text was updated successfully, but these errors were encountered: