Highchart piechart colour fade for smaller slices

54 views Asked by At

enter image description here Hi i have this highchart which displays a lot of data as the slices get smaller the chart color fades how can i avoid this without the need to reduce the number of data being displayed

i tried to incre0

I want the chart to be something like this without the fading/whitespaces on smaller slicesase the minSize property of the chart but nothing works enter image description here

2

There are 2 answers

5
user22789501 On

dont want to delete the response thread

0
magdalena On

According to the API:

When setting the border width to 0, there may be small gaps between the slices due to SVG antialiasing artefacts. To work around this, keep the border width at 0.5 or 1, but set the borderColor to null instead.

Code:

series: [{
    borderColor: null,
    borderWidth: 1,
    data
}]

Demo: https://jsfiddle.net/BlackLabel/x1tsezan/

API Refernce: https://api.highcharts.com/highcharts/series.pie.borderWidth