refactor: set default width for legend label to 150

This commit is contained in:
Shivam Mishra 2020-06-03 16:18:12 +05:30
parent 724de646a6
commit 73fddf0623

View File

@ -63,7 +63,7 @@ export default class AggregationChart extends BaseChart {
let count = 0; let count = 0;
let y = 0; let y = 0;
this.legendTotals.map((d, i) => { this.legendTotals.map((d, i) => {
let barWidth = 110; let barWidth = 150;
let divisor = Math.floor( let divisor = Math.floor(
(this.width - getExtraWidth(this.measures))/barWidth (this.width - getExtraWidth(this.measures))/barWidth
); );