Fixed statistics getting cut off

This commit is contained in:
ByteHamster 2019-10-13 21:42:49 +02:00
parent 8d81fb8d9b
commit 3d8781d156
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@ public class PieChartView extends AppCompatImageView {
float startAngle = 180;
for (int i = 0; i < dataValues.length; i++) {
float datum = dataValues[i];
float sweepAngle = 180 * datum / valueSum;
float sweepAngle = (180f - PADDING_DEGREES) * (datum / valueSum);
if (sweepAngle < MIN_DEGREES) {
break;
}