-
-
Notifications
You must be signed in to change notification settings - Fork 6k
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 bars in bar charts #4375
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4375 +/- ##
==========================================
- Coverage 40.81% 40.75% -0.07%
==========================================
Files 124 124
Lines 9490 9519 +29
==========================================
+ Hits 3873 3879 +6
- Misses 5617 5640 +23
Continue to review full report at Codecov.
|
any reason/highlight you send this PR to us? |
Didn't seem like there was any movement on the existing efforts, and people really want and need this (including myself) - and I wanted to provide this work for you all to use or iterate on. |
Do you have an example of how this is supposed to work? Any value I pass to |
What values are you passing in? And what is the crash? Here is what I am setting it to: |
for rounded bar, I think the best PR so far is #3754. However the author not responding, and we really are also busy with our jobs... so, if you think you want to contribute, I guess you will take some from #3754? The main problem for rounded bar is, when the bar is thinner, the rounded bar will look like an oval, which is not ideal. #3754 said she/he solved it. if you want to take it from here, if you can solve this, we'd happy to review |
This would be easy to accomplish by providing your custom renderer, if #4297 was merged. |
Issue Link 🔗
Other PR: #3754
I understand that there are other attempts at this, but I am working on a project that requires this - so I forked this and gave it a shot with the latest master.
Goals ⚽
Provide ability to round bar charts for charts that contain only positive values.
Implementation Details 🚧
Pretty straightforward - provides a property to set the multiplier you wish to drive the corner radius - and the renderer searches for the correct bar segment to apply that to, and draws it with a path.