Using the treeshakable api for echarts #6424
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WHAT
🤖 Generated by Copilot at d7840ee
The pull request improves the performance and organization of the line plot components used in the consultations page. It uses
ReactEchartsCore
instead ofecharts-for-react
and combinesLinePlot
andStackedLinePlot
in the same file.Proposed Changes
@coronasafe/care-fe-code-reviewers @coronasafe/code-reviewers @sainak
Before optimization
![image](https://private-user-images.githubusercontent.com/56870381/273563018-c0ef1ac2-1cc6-4405-aa95-19637106a68c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NTY2MzUsIm5iZiI6MTcxOTY1NjMzNSwicGF0aCI6Ii81Njg3MDM4MS8yNzM1NjMwMTgtYzBlZjFhYzItMWNjNi00NDA1LWFhOTUtMTk2MzcxMDZhNjhjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDEwMTg1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyYWIxZjM1MDI0NDQ1MjQ4NzY5ODdiOGZhZWZhOTM2ZDhiMzMzNzg0ZDZlMWU1NDg3M2NlYTBlY2JhY2IyMDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.GLrSUXOky7l9b9QTIIxuuNo7J6l-9hK9mJ7QszMHqns)
After Optimization
![image](https://private-user-images.githubusercontent.com/56870381/273563135-e5013da2-7506-4aca-a4d5-7a61687d5aaf.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk2NTY2MzUsIm5iZiI6MTcxOTY1NjMzNSwicGF0aCI6Ii81Njg3MDM4MS8yNzM1NjMxMzUtZTUwMTNkYTItNzUwNi00YWNhLWE0ZDUtN2E2MTY4N2Q1YWFmLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDEwMTg1NVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc5OTMxMzdiN2E2MTc2MGRkMzE4ZGNmYTM0NzNjZGNlZTAyM2EwYTc5OTlmNzgxYzBkYzBlZmUwMTZlM2EwYTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.30P2fBR3GuxYfrPW3Pbo_stCG2UZrNeywCoouI1kzBM)
HOW
🤖 Generated by Copilot at d7840ee
StackedLinePlot.tsx
toLinePlot.tsx
(link)