The default line chart has a 'staggered' look which is not found in libs like chart.js or SwiftUI charts, so I searched for ways to improve the smoothening algorithm and found the mentioned article, and tried it out.
:green_heart: How did you test it?
Using the library with the modified file in an Android project as module dependency and tested both on emulator and device
:pencil: Checklist
[x] I reviewed submitted code
[ ] I added tests to verify changes
[ ] All tests passing
[x] All linters passing
[ ] There are no code climate issues
:camera_flash: Screenshots / GIFs
Basic Cubic Bezier
Advance Cubic Bezier
Validation
Run the sample app and check the difference in the Line Charts
Risks
It is computationally more expensive than the basic cubic Bezier
:loudspeaker: Type of change
:scroll: Description
Modified LineChart to use the Advanced Cubic Bezier algorithm for line smoothening as given at https://medium.com/mobile-app-development-publication/making-graph-plotting-function-in-jetpack-compose-95c80ee6fc7f
:bulb: Motivation and Context
The default line chart has a 'staggered' look which is not found in libs like chart.js or SwiftUI charts, so I searched for ways to improve the smoothening algorithm and found the mentioned article, and tried it out.
:green_heart: How did you test it?
Using the library with the modified file in an Android project as module dependency and tested both on emulator and device
:pencil: Checklist
:camera_flash: Screenshots / GIFs
Basic Cubic Bezier
Advance Cubic Bezier
Validation
Run the sample app and check the difference in the Line Charts
Risks
It is computationally more expensive than the basic cubic Bezier