Skip to content

Commit

Permalink
fix: rollback change to fix groupBars
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Apr 29, 2024
1 parent 6d1508b commit ae6200b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ui-chart/data/BarData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ export class BarData extends BarLineScatterCandleBubbleData<BarEntry, BarDataSet
*/
public getGroupWidth(groupSpace, barSpace) {
const dataSetCount = this.dataSetCount;
return dataSetCount * this.barWidth + (dataSetCount > 1 ? Math.ceil(dataSetCount / 2) : 0) * barSpace + groupSpace;
// return dataSetCount * this.barWidth + (dataSetCount > 1 ? Math.ceil(dataSetCount / 2) : 0) * barSpace + groupSpace;
return dataSetCount * (this.barWidth + barSpace) + groupSpace;
}
}

0 comments on commit ae6200b

Please sign in to comment.