New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zone color on hover incorrect when markers are hidden #5430
Comments
Internal note: This is also seen without the use of zones, example http://jsfiddle.net/ncchm8v1/2/ |
For a case without zones, simple solution is to set For zones this is not so simple: color of the marker is calculated according to the zone. Additional info: zones colors work fine, when markers are enabled: http://jsfiddle.net/ncchm8v1/5/ - that suggests issue with only one inherited marker ( Interaction.js -> |
Can be fixed by updating attributes at Interaction L579-5781 stateMarkerGraphic[move ? 'animate' : 'attr']({ // #1054
x: plotX - radius,
y: plotY - radius
})
.attr(pointAttr); |
2016? :-) Bump! |
@markushausammann Looks like the problem is resolved, but issue not closed. |
We just had this problem now... but maybe we're not working with the latest version. I'll check. Thanks for the answer! |
@KacperMadej This problem still occurs in styled mode in Highcharts v7.0.0. See here http://jsfiddle.net/6dhkry9o/ (note that when hovering over the green peak, the marker is shown in blue, not green. |
Thank you for providing a demo for the problem in styled mode @aimfeld Here's a workaround - set markers as very small instead of hiding them - demo: http://jsfiddle.net/BlackLabel/L4vg9qwn/ |
@KacperMadej Thanks for the workaround and quick help, it works 👍 |
Expected behaviour
When markers are hidden because of small distances between points (large points, zoomed-out axis), markers still show on hover. Hover colors should match what they would be if those markers were not hidden.
Actual behaviour
Marker colors don't match the correct zone, though line colors do
Live demo with steps to reproduce
http://jsfiddle.net/ncchm8v1/
Affected browser(s)
Happens in both Firefox and Chrome in Linux, Chrome in Windows
Note, I mentioned this in issue a comment on #4670 but thought it might be better to open a new issue rather than reopen that one, as I'm not sure if they're related
The text was updated successfully, but these errors were encountered: