feat: labels will auto fit wrapper width
This commit is contained in:
parent
19e276f246
commit
94c835115b
@ -67,6 +67,9 @@ export default class AggregationChart extends BaseChart {
|
||||
let divisor = Math.floor(
|
||||
(this.width - getExtraWidth(this.measures))/barWidth
|
||||
);
|
||||
if (this.legendTotals.length < divisor) {
|
||||
barWidth = this.width/this.legendTotals.length;
|
||||
}
|
||||
if(count > divisor) {
|
||||
count = 0;
|
||||
y += 20;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user