Skip to content

Commit

Permalink
discard initialXRatio in normal category bar charts - fixes #4134
Browse files Browse the repository at this point in the history
  • Loading branch information
junedchhipa committed Jan 20, 2024
1 parent 352e7db commit 7255dcc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/charts/common/bar/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ export default class Helpers {
if (w.globals.isXNumeric) {
// max barwidth should be equal to minXDiff to avoid overlap
let xRatio = this.barCtx.xRatio
if (w.config.xaxis.convertedCatToNumeric) {
xRatio = this.barCtx.initialXRatio
}

if (
w.globals.minXDiff &&
w.globals.minXDiff !== 0.5 &&
Expand Down

0 comments on commit 7255dcc

Please sign in to comment.