Skip to content

Support for rounded bar chart and grid edges#5109

Closed
swatiyadav009 wants to merge 1 commit into
ChartsOrg:masterfrom
swatiyadav009:feature/bar-rounded-corners
Closed

Support for rounded bar chart and grid edges#5109
swatiyadav009 wants to merge 1 commit into
ChartsOrg:masterfrom
swatiyadav009:feature/bar-rounded-corners

Conversation

@swatiyadav009

Copy link
Copy Markdown

Issue Link 🔗

Goals ⚽

Implementation Details 🚧

Testing Details 🔍

@swatiyadav009

Copy link
Copy Markdown
Author

Please do check my open PR for rounded slices for PieChart as well.
Link - #5114

@gabors

gabors commented Dec 10, 2023

Copy link
Copy Markdown

@swatiyadav009 Love this PR, few comments / wishes however:

  • the corner radius is a percentage of the bar width, so it doesn't work for horizontal charts, as they end up with super rounded corners (see example, dataSet.cornerRadius = 0.1)
  • would it be possible to supply instead an absolute value for the corner radius in points?
image

@crash481

Copy link
Copy Markdown
  1. bottom of Bars also with CornerRadius, when usually it is only on top. Need to make for every edge
  2. Selection highlight without corners
Screenshot 2024-03-28 at 20 46 28

@gabors

gabors commented Mar 28, 2024

Copy link
Copy Markdown

I actually don't mind the rounded edges on the bottom but yes the lack of rounding on the highlighted back has been annoying.

@crash481

Copy link
Copy Markdown

@gabors it is popular design when bars in bottom starts without corner radius, and on the top corners is rounded

@crash481

crash481 commented Mar 28, 2024

Copy link
Copy Markdown

I made this pull request, both problems above is fixed
#5163

@gabors

gabors commented Mar 28, 2024

Copy link
Copy Markdown

Agreed it's better to have options.

@crash481

Copy link
Copy Markdown

@gabors oh, also your wish about implement corner radius in absolute values also there. ✌️

@gabors

gabors commented Mar 28, 2024

Copy link
Copy Markdown

@crash481 amazing. I can get rid of my fork then 😊

I'll test it out today. Thanks 🙏

@gabors

gabors commented Mar 28, 2024

Copy link
Copy Markdown

@crash481 on a different subject. How did you add that popup value ?

@pmairoldi pmairoldi self-requested a review March 5, 2026 04:46
@pmairoldi pmairoldi self-assigned this Mar 7, 2026
@pmairoldi

Copy link
Copy Markdown
Collaborator

Currently already implemented here
Closing in favour of #5250 for full platform support

@pmairoldi pmairoldi closed this Mar 7, 2026
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

Successfully merging this pull request may close these issues.

4 participants