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

Dynamic change of border radius in a stacked column graph #20781

Closed
mayur249 opened this issue Mar 5, 2024 · 4 comments
Closed

Dynamic change of border radius in a stacked column graph #20781

mayur249 opened this issue Mar 5, 2024 · 4 comments
Labels
Product: Highcharts Type: Feature Request Used when a new feature is requested either directly or indirectly

Comments

@mayur249
Copy link

mayur249 commented Mar 5, 2024

Description of the feature

For a stacked graph, if I wanted to make topmost bar as curve using border-radius I can do it, but in the scenario where the value of the top most bar is 0 at that time the second most bar from the top appears flat. Can we get a way to dynamically change the border radius of a particular bar

Library related to the feature

Highcharts

Proof of Concept/Live example for the feature

As you can see in the below screenshot, I have given border radius for the topmost bar but in the 4th bar you can see the topmost bar's value is 0 so it is directly showing the second bar with flat surface, if we can get a way to make it's border radius also change then it will be helpful
Screenshot 2024-03-05 at 7 13 49 PM
Screenshot 2024-03-05 at 7 14 45 PM


You can vote for this feature by adding a thumbs-up reaction to this post.

@mayur249 mayur249 added the Type: Feature Request Used when a new feature is requested either directly or indirectly label Mar 5, 2024
@bm64
Copy link
Member

bm64 commented Mar 5, 2024

Hi @mayur249 and thanks for sharing the idea.

@mayur249
Copy link
Author

Hi @bm64, so currently in highcharts we don't have the option to implement this right ?

@bm64
Copy link
Member

bm64 commented Mar 11, 2024

@mayur249 after investigating it looks like the stacked column chart works exactly like in your request; the topmost stack is rounded: https://jsfiddle.net/BlackLabel/m2uy49sr/ Is that what you're looking for? Maybe you need to upgrade Highcharts version.

@TorsteinHonsi
Copy link
Collaborator

@mayur249 @mayur249
From the original post's screenshot, it seems that it uses the old rounded corners plugin. This should not be used anymore, since rounded corners were implemented natively as of v11.0, and with an approach that deals with rounding across stacks. I'll make a note in the rounded-corners package about its deprecation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Product: Highcharts Type: Feature Request Used when a new feature is requested either directly or indirectly
Projects
None yet
Development

No branches or pull requests

3 participants