From f9715a2f0049e06fd19be1ded94f22203df6b9f9 Mon Sep 17 00:00:00 2001 From: escullz Date: Fri, 17 Jun 2022 12:45:51 -0600 Subject: [PATCH] barWidthArray --- src/charts/common/bar/Helpers.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/charts/common/bar/Helpers.js b/src/charts/common/bar/Helpers.js index 7ab80105c..452d5a5de 100644 --- a/src/charts/common/bar/Helpers.js +++ b/src/charts/common/bar/Helpers.js @@ -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 @@ -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] - @@ -175,6 +179,7 @@ export default class Helpers { return pathFill } + getStrokeWidth(i, j, realIndex) { let strokeWidth = 0 const w = this.w