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

Pie chart #18

Open
lenin-anzen opened this issue Oct 31, 2017 · 10 comments
Open

Pie chart #18

lenin-anzen opened this issue Oct 31, 2017 · 10 comments

Comments

@lenin-anzen
Copy link

How can i add a rounded corner to a pie chart like:

Is possible with the latest version of HighCharts?

@TorsteinHonsi
Copy link
Contributor

One way to do that is to set the border color to null and increase the border width, but as you can see there's now a problem with overlapping: http://jsfiddle.net/highcharts/pDdcd/325/

@lenin-anzen
Copy link
Author

Hi @TorsteinHonsi how can i add an space between the data series?

@TorsteinHonsi
Copy link
Contributor

Currently you can't. A very ugly workaround would be to add hidden points in between. http://jsfiddle.net/highcharts/w5arfhpw/4/

@maximmold
Copy link

I'd like to see this as a first class option as well. We are currently weighing a couple of different charting libraries and this works well a different library we are considering.

@TorsteinHonsi
Copy link
Contributor

@maximmold Do you mean rounded corners for the pie series, or space between the slices? Maybe we can see a sketch of what you want to achieve?

@maximmold
Copy link

maximmold commented Sep 3, 2018

We'd like something more like this. We want rounded corners with just a little sliver of space between them.
image

This is the best I could do with highcharts which clearly doesn't look great particularly in regards to the outer arc and the uneven space.
image

@TorsteinHonsi
Copy link
Contributor

SVG filters offer an alternative: http://jsfiddle.net/highcharts/1ye6j47m/

@maximmold
Copy link

Hmm... not bad at on the corners, but the arc looks blurrier than normal. I guess setting an additional arc on the svg path at the corners isn't an easy task?

@TorsteinHonsi
Copy link
Contributor

Yes, it looks like antialiasing is broken when using the filters.

Adding arc at the corners requires some complicated math, but if you want to have a go, you can extend the SVGRenderer.prototype.symbols.arc function. Here's a boilerplate that you can work on: http://jsfiddle.net/highcharts/1ye6j47m/12/

@Sovai
Copy link

Sovai commented Sep 2, 2021

+1

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

4 participants