-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
marker's position don't follow the series when highstock chart is scrolling #8284
Comments
Hi @sylaince Thank you for reporting this bug. You are right, both markers should follow last hovered point, the same way it works for just one series: https://jsfiddle.net/BlackLabel/fz7cv853/6/ Workaround: Plugin: (function(H) {
H.wrap(H.Pointer.prototype, 'reset', function(proceed, allowMove, delay) {
proceed.call(this, Array.prototype.slice.call(arguments, 1));
if (this.chart.tooltip && allowMove && this.chart.hoverPoints) {
H.each(this.chart.hoverPoints, function(hoverPoint) {
hoverPoint.setState(hoverPoint.state, true);
});
}
})
})(Highcharts) Internal note: |
It's completely resolved, thanks for your awesome work! |
Thank you! Let's keep this open - I think this should be fixed in the core. |
That will be great! |
Internal note: |
Expected behaviour
create a highstock chart with two serieses, when mouse over marker and tooltip will display, don't move the mouse and all the markers are following the movement of the series when chart is scrolling
Actual behaviour
one of the markers didn't follow the movement of its series
screenshot: https://i.stack.imgur.com/L8FJZ.jpg
Live demo with steps to reproduce
https://jsfiddle.net/sylaince/fz7cv853/3/
put your mouse over the top right or bottom right area of the chart would help reproducte the problem.
Product version
Highstock-6.1.0
Affected browser(s)
Chrome 66.0.3359.139
The text was updated successfully, but these errors were encountered: