fix labels overlapping in bar chart x-axis

This commit is contained in:
2020-09-27 20:02:56 +02:00
parent 2f4d1f701b
commit e71ab07440

View File

@@ -101,7 +101,7 @@ public class BarChartAggregatorForIntervals implements CustomAggregator, Indexed
if (maxLabels >= numberOfBuckets) { if (maxLabels >= numberOfBuckets) {
return true; return true;
} else { } else {
return index % (int) Math.ceil(numberOfBuckets / maxLabels) == 0; return index % (int) Math.ceil(numberOfBuckets / (double) maxLabels) == 0;
} }
} }