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

fix: reduce chart re-draws for update() #584

Merged
merged 6 commits into from
Oct 13, 2021

Conversation

vursen
Copy link
Contributor

@vursen vursen commented Oct 8, 2021

Description

This PR backports the fix introduced in vaadin/web-components#2508 to reduce the number of chart re-draws for the update() method.

Type of change

  • Bugfix

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/guide/contributing/overview/
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.

@CLAassistant
Copy link

CLAassistant commented Oct 8, 2021

CLA assistant check
All committers have signed the CLA.

@vursen vursen changed the title refactor: reduce chart redraws for update() refactor: reduce chart re-draws for update() Oct 8, 2021
@vursen vursen requested a review from yuriy-fix October 8, 2021 12:32
@vursen vursen changed the title refactor: reduce chart re-draws for update() refactor: reduce chart re-draws for update() (vaadin/web-components#2508) Oct 11, 2021
@vursen vursen changed the title refactor: reduce chart re-draws for update() (vaadin/web-components#2508) refactor: reduce chart re-draws for update() (#2508) Oct 11, 2021
@vursen vursen changed the title refactor: reduce chart re-draws for update() (#2508) refactor: reduce chart re-draws for update() Oct 11, 2021
@vursen vursen requested a review from hdamr October 12, 2021 12:19
}
}

__updateOrAddSeriesInstance(seriesOptions, position) {
__updateOrAddSeriesInstance(seriesOptions, position, redraw) {
Copy link
Contributor

@hdamr hdamr Oct 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is another call to this method on line 1019 that needs to be updated.

Copy link
Contributor Author

@vursen vursen Oct 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit beyond the scope of the current fix so I would rather not change the __addSeries method in this PR, but do it in a separate PR when backporting vaadin/web-components#2348. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in #585.

@vursen vursen changed the title refactor: reduce chart re-draws for update() fix: reduce chart re-draws for update() Oct 13, 2021
@vursen vursen requested a review from hdamr October 13, 2021 07:30
hdamr
hdamr previously approved these changes Oct 13, 2021
@vursen vursen merged commit 6d2f8b9 into master Oct 13, 2021
@vursen vursen deleted the perf/charts/optimize-update-configuration branch October 13, 2021 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants