Skip to content

Commit

Permalink
Merge pull request #4637 from rosco54/Issue_4630
Browse files Browse the repository at this point in the history
Fix regression issue introduced in 3.49.0
  • Loading branch information
junedchhipa authored Aug 15, 2024
2 parents cad1d2f + df170c8 commit 275d405
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/charts/BarStacked.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,10 +255,11 @@ class BarStacked extends Bar {
barWidth *= parseInt(userColumnWidth, 10) / 100
}

zeroH =
w.globals.gridHeight -
this.baseLineY[translationsIndex] -
(this.isReversed ? w.globals.gridHeight : 0)
if (this.isReversed) {
zeroH = this.baseLineY[translationsIndex]
} else {
zeroH = w.globals.gridHeight - this.baseLineY[translationsIndex]
}

// initial x position is the left-most edge of the first bar relative to
// the left-most side of the grid area.
Expand Down

0 comments on commit 275d405

Please sign in to comment.