Skip to content

Commit

Permalink
barWidthArray
Browse files Browse the repository at this point in the history
  • Loading branch information
escullz committed Jun 17, 2022
1 parent 449f374 commit f9715a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/charts/common/bar/Helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class Helpers {
}
}

initialPositions() {
initialPositions(realIndex=null) {
let w = this.w
let x, y, yDivision, xDivision, barHeight, barWidth, zeroH, zeroW

Expand Down Expand Up @@ -118,6 +118,10 @@ export default class Helpers {
}
}

if (Array.isArray(this.barCtx.barOptions.columnWidth)) {
barWidth = this.barCtx.barOptions.columnWidth[realIndex]
}

zeroH =
w.globals.gridHeight -
this.barCtx.baseLineY[this.barCtx.yaxisIndex] -
Expand Down Expand Up @@ -175,6 +179,7 @@ export default class Helpers {
return pathFill
}


getStrokeWidth(i, j, realIndex) {
let strokeWidth = 0
const w = this.w
Expand Down

0 comments on commit f9715a2

Please sign in to comment.