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

Support for round corners and/or beizer curves. #5

Open
OnurGumus opened this issue Jun 17, 2020 · 4 comments
Open

Support for round corners and/or beizer curves. #5

OnurGumus opened this issue Jun 17, 2020 · 4 comments

Comments

@OnurGumus
Copy link

Anyway support for round corners and/or beizer curves?

@tpetricek
Copy link
Contributor

This is currently not supported, but I can see how this would be useful for smooth lines.

Out of curiosity, what are the use cases that you're thinking of? I can definitely imagine the smooth line using a bezier curve (and SVG supports this, so it should be not too hard). I'm not sure about good use case for rounded corners though...

@OnurGumus
Copy link
Author

One of the cases is purely for cosmetic reasons, it would be nice to round the corners of those bar charts. As for the second, I was thinking about pie charts.

@tpetricek
Copy link
Contributor

Thanks, that makes sense!

Pie charts are one thing that I don't have a good solution for right now. Ideally, I would like to handle those by somehow projecting the 2D space of a chart on a circle (so that a chart with just a series of plain rectangles becomes a pie chart) - but I have not done anything to make this actually work...

@OnurGumus
Copy link
Author

OnurGumus commented Jun 18, 2020

How about a helper shape dedicated to beizer curves just like you have a helper for lines? That might ease the pain as the user can give the start and end points and make the curve with this function. One thing needs be added lines and curves should be able to form a closed shape so that you can fill inside. I guess this leads to something like SVG paths.

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

No branches or pull requests

2 participants