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

Highcharts Marker Flickering When Redraw is deferred #8060

Closed
allanmacmillan4 opened this Issue Mar 21, 2018 · 4 comments

Comments

Projects
None yet
2 participants
@allanmacmillan4

allanmacmillan4 commented Mar 21, 2018

Expected behaviour

When redraw is called (regardless of whether that is immediately or deferred until later), the series will be redrawn without any flickering markers

Actual behaviour

When redraw is called, the series is redrawn, but the markers flicker

Live demo with steps to reproduce

Flicker present - http://jsfiddle.net/vmw9xgbe/
No Flicker - http://jsfiddle.net/drgxbjnn/

Product version

Highcharts (also present in Highstoks) 6.0.7 (I think)

Affected browser(s)

All

@pawelfus

This comment has been minimized.

Contributor

pawelfus commented Mar 22, 2018

Hi @allanmacmillan4

The flickering is always there, just when you don't defer redraw, you won't see it. When setting new dataset (with different amount of points), all points are destroyed and new ones are created. How about using addPoint() instead of setData() ? Like this: http://jsfiddle.net/BlackLabel/vmw9xgbe/4/

@allanmacmillan4

This comment has been minimized.

allanmacmillan4 commented Mar 22, 2018

Why should the time you choose to redraw the chart influence the behavior of that chart when the interactions are the same.

The jsfiddles i have attached are simple to show the problem, in reality, setData is sometimes the only option and should manage the redrawing without flickering.

This must be a bug

@pawelfus pawelfus self-assigned this Mar 23, 2018

@pawelfus

This comment has been minimized.

Contributor

pawelfus commented Mar 23, 2018

@allanmacmillan4 As I said:

The flickering is always there, just when you don't defer redraw, you won't see it.

Anyway, it should be possible to fix this issue in the core in the upcoming 6.1 version: http://jsfiddle.net/BlackLabel/u3e66azL/ (note: updatePoints is set to true, and this setting is necessary).

Let me test the solution above.

@pawelfus

This comment has been minimized.

Contributor

pawelfus commented Mar 23, 2018

Fixed version on PR branch: http://jsfiddle.net/BlackLabel/vmw9xgbe/79/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment