-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Charting: Area chart - Graph update after data change issue resolved and memoize implemented #15299
Charting: Area chart - Graph update after data change issue resolved and memoize implemented #15299
Conversation
…abric-react into user/v-jasha/AreachrtRedraw
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e129dcc:
|
Perf AnalysisNo significant results to display. All results
Perf Analysis (Fluent)Perf comparison
Perf tests with no regressions
|
Asset size changesUnable to find bundle size details for Baseline commit: 3ce8f97 Possible causes
Recommendations
|
🎉 Handy links: |
🎉 Handy links: |
* Charting: Resolving redraw issue after data change in AreaChart and implementing memoization. Cherry-pick of #15299.
* Charting: Resolving redraw issue after data change in AreaChart and implementing memoization. Cherry-pick of microsoft#15299.
Pull request checklist
$ yarn change
Description of changes
After props data updated, need to update stackedValues and CalloutPoints which are using to redraw the graph. These data updated.
Memoize concept implemented - Previously, calculating stacked data, getting keys, colors, creating dataset all these will be calculated for every render which is not required and take time. Now all these will be calculated only when prop changes.
Focus areas to test
Area chart
Before Fix, After clicking on update data (Graph is same as previous)
After fix, Updated graph.
Test link: http://fabricweb.z5.web.core.windows.net/pr-deploy-site/refs/pull/15235/merge/charting/dist/index.html#/examples/areachart