fix labels overlapping in bar chart x-axis
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user