Skip to content
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

setData called twice without redraw causes wrong point update #8620

Closed
KacperMadej opened this issue Jul 13, 2018 · 1 comment
Closed

setData called twice without redraw causes wrong point update #8620

KacperMadej opened this issue Jul 13, 2018 · 1 comment
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug

Comments

@KacperMadej
Copy link

Expected behaviour

Redraw argument of series.setData() used only for visual change.

Actual behaviour

After point is removed, series array of points contains "empty" point and causes setData to run point update by default in some cases.

Live demo with steps to reproduce

Single point is present, then removed (without redraw) and a new point is added (using setData, with later called chart.redraw).
https://jsfiddle.net/BlackLabel/3cw2dteh/
Steps: press "remove" and after that "add"

Workaround

Call second setData with updatePoints argument set to false - https://jsfiddle.net/BlackLabel/3cw2dteh/1/

@stale
Copy link

stale bot commented Jun 29, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. label Jun 29, 2020
@highsoft-bot highsoft-bot added this to To do in Development-Flow via automation Jun 29, 2020
@stale stale bot closed this as completed Jul 6, 2020
Development-Flow automation moved this from To do to Done Jul 6, 2020
@Izothep Izothep removed this from Done in Development-Flow Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale This issue hasn't had any activity for a while, and will be auto-closed if no further updates occur. Type: Bug
Projects
None yet
Development

No branches or pull requests

2 participants