Open VukMNE opened 4 years ago
Same issue for me.
Here's my template:
<RadPieChart [@pop]="chartPop" allowAnimation="true">
<DonutSeries *ngFor="let c of categories" tkPieSeries seriesName="customPalette"
selectionMode="none" expandRadius="0.4" outerRadiusFactor="0.8" innerRadiusFactor="0.4"
valueProperty="amount" legendLabel="name" [items]="source">
</DonutSeries>
<Palette tkPiePalette seriesName="customPalette">
<PaletteEntry *ngFor="let c of categories" tkPiePaletteEntry strokeWidth="0"
[fillColor]="c.color">
</PaletteEntry>
</Palette>
</RadPieChart>
Woring smoothly when source has 2+ items.
@VukMNE @tommaso-sebastianelli confirming that the issue is reproducible on my side - it looks like a bug in the PieChart series.
Steps to reproduce the bug - use this Playground demo and notice the behavior when one of the items is represented with a hundred percent of the values (and the other is 0)
You could try as a workaround to replace the 0 value with some really really small value behind the decimal point (e.g., in this case, a 0.0001 does the trick)
@NickIliev thank you, the preview is working fine. I will go for it in my project too.
@NickIliev Thank you for your response, and for dedicating your time for solving this issue. However, the workaround with adding a very small value ( something like 0.0001) is not very convenient if you choose to display labels.
@NickIliev Do you find any solution for this? This is already 1 year old bug, still not fixed yet? I tried with small value, but it will add a line in across the chart.
I am experiencing a strange behaviour of RadPieChart and PieSeries.
PieSeries is showing only a thin line when one value represents 100% of total.
If my description is not clear, bellow are images to illustrate the problem I am facing. First image shows regular behaviour of PieSeries, and the second one shows the problematic
Image 1
behaviour. Image 2
The code for both charts is identical. These charts are dynamic, and they display different data regarding the parameters user typed in. However, bellow is the code for both charts.
And here is for the other chart
If I am missing something, please let me know. I tried searching for a solution on stack overflow, but I couldn't find anything similar.