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

Rounded line chart #3115

Closed
mdnjustin opened this issue Dec 18, 2017 · 6 comments
Closed

Rounded line chart #3115

mdnjustin opened this issue Dec 18, 2017 · 6 comments
Assignees
Labels

Comments

@mdnjustin
Copy link

I have this:
screen shot 2017-12-18 at 4 26 34 pm

Is there a way of rounding off the corners to make it look more like this?
screen shot 2017-12-18 at 4 28 01 pm

I've tried using
set.mode = .cubicBezier
but it doesn't create the flat lines I want.

@liuxuan30
Copy link
Member

liuxuan30 commented Jan 2, 2018

hmm, it seems not a easy one. bezier curve and your goal is different.
Have you tried line cap, or horizontal bezier mode? it might help.
@jjatie any idea?

@jjatie
Copy link
Collaborator

jjatie commented Jan 2, 2018

I think this is an outlying case. If we don't come up with more pressing features to add, it would be a neat feature to add for 4.x (I'm hoping to get a ChartRenderer refactor in 4.0). It makes sense to me that line graphs get more line options.

@jjatie jjatie added the feature label Jan 2, 2018
@jjatie jjatie self-assigned this Jan 2, 2018
@liuxuan30
Copy link
Member

liuxuan30 commented Jan 3, 2018

eh line cap we already added in (by me I remember). Why I feel we are talking differently, haha. do you know how to draw a line like above in a easy way (not asking to implement now)?

@jjatie
Copy link
Collaborator

jjatie commented Jan 3, 2018

I do not. It's not something I would use when plotting data because it incorrectly represents discontinuous data as continuous.

@mdnjustin
Copy link
Author

Alright, thanks for your help guys.

@mcat345
Copy link

mcat345 commented Aug 22, 2023

does anyone found a solution for this?

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

No branches or pull requests

4 participants