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

Line charts have a staggered look #151

Open
mlnoone opened this issue Dec 2, 2023 · 0 comments
Open

Line charts have a staggered look #151

mlnoone opened this issue Dec 2, 2023 · 0 comments

Comments

@mlnoone
Copy link

mlnoone commented Dec 2, 2023

The default line chart has a 'staggered' look which is not found in libs like chart.js or SwiftUI charts. I found a nice article on how to do line smoothing without having this staggered appearance at https://medium.com/mobile-app-development-publication/making-graph-plotting-function-in-jetpack-compose-95c80ee6fc7f. I have forked the repo and modified the line chart to use this to generate the cubic points used for line smoothing, and submitting a pull request for the same.
Basic Cubic Bezier
Basic Cubic Bezier

Advancd Cubic Bezier
Advance Cubic Bezier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant