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 corners on stacked bar chart #23

Open
valentinludu opened this issue Jul 24, 2018 · 14 comments
Open

Rounded corners on stacked bar chart #23

valentinludu opened this issue Jul 24, 2018 · 14 comments

Comments

@valentinludu
Copy link

Any chance to see this working on stacked bar charts? Currently the rounded corners are applied to the bottom bar as well. There should be a rule to apply the rounded corners only for the top bar if there are more that 1 bar on top of each other.
screen shot 2018-07-24 at 11 24 24

@KacperMadej
Copy link

Hi @valentinludu

Thank you for the enhancement suggestion.

Currently the corner options are set on series level, so you would have to use different series for not rounded point that for the points with rounded corners.

@valentinludu
Copy link
Author

Thank you @KacperMadej .
Yes, I understand. The problem is: if I set the series represented with purple, in my above image, to have no corners, the last combined bar will look good but the second one will have no corners.
So the best action will be to have a rule to not have rounded corners only if that bar is stacked below another.
Does the library have a rule that could dedect if a bar is below another one?
And if there is how could I create a method to not have rounded corners if the bar is stacker and is below another one?

@KacperMadej
Copy link

Currently there's no such feature in this plugin. As a workaround you could check data before creating a chart and prepare some series like in this demo: http://jsfiddle.net/BlackLabel/bhov0pLe/

Stacking logic for Highcharts is placed in this file: https://github.com/highcharts/highcharts/blob/master/js/parts/Stacking.js You could go through it to find more info from comments if you would like to create a custom code that will implemented the requested feature.

@valentinludu
Copy link
Author

Thank you very much.
I took your advice and worked.
Maybe in the near future someone will have a fix for this.

Kind regards,
Valentin

@cgandhamQB
Copy link

cgandhamQB commented Apr 20, 2021

Hi @KacperMadej, I used the rounded-corner highcharts plugin in a bullet chart. I'm able to get the rounded edge in the top of the bar but it causes the target bar to disappear when I use 'borderRadiusTopLeft' and 'borderRadiusBottomRight' on the series of my bullet chart. Is there any solution that I could try to have the rounded edge on the top for both the progress and target of a bullet chart?
Thanks,
chandana

@KacperMadej
Copy link

@cgandhamQB
Your problem is not the same as the one described in this issue so it would be better to if you could open a new issue (or contacted technical support) with a live demo of the problem. Is short: it looks that the plugin doesn't support the bullet type series.

@ghost
Copy link

ghost commented Sep 2, 2021

Hi @KacperMadej .I'm getting the same error as @valentinludu
I'm getting the same error as
Please help me !

@ghost
Copy link

ghost commented Sep 5, 2021

@KacperMadej

@KacperMadej
Copy link

@Sotatek-VuVanTuan
If you are getting the same error then try the same workaround (more info in my previous comments) and if it doesn't work for you please elaborate.

@umairmanzoor1143
Copy link

Hi @KacperMadej
How To Change Row Chart bar BorderRadius only left top and bottom

@KacperMadej
Copy link

@umairmanzoor1143
What's "Row Chart" ?
See usage: https://github.com/highcharts/rounded-corners#usage

@totszwai
Copy link

totszwai commented Oct 26, 2021

So... How can we round the corner of the entire stacked bar as a whole instead of individual series?

@sethuraman150
Copy link

Highcharts: is it possible to set up top bottom radius for the columns in Column chart?

@sethuraman150
Copy link

any other possible to set border bottom radius for column chart in highcharts??

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

No branches or pull requests

6 participants