From 2c04a816d73063c7fd84286e9bb562f2ddf8c90d Mon Sep 17 00:00:00 2001 From: Evert Timberg Date: Sun, 1 Nov 2015 20:26:58 -0500 Subject: [PATCH] Use correct option to detect stacked mode along x axis. --- src/controllers/controller.bar.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/controller.bar.js b/src/controllers/controller.bar.js index a850269a0..a1c631271 100644 --- a/src/controllers/controller.bar.js +++ b/src/controllers/controller.bar.js @@ -293,7 +293,7 @@ var leftTick = xScale.getPixelForValue(null, index, barIndex, this.chart.isCombo); leftTick -= this.chart.isCombo ? (ruler.tickWidth / 2) : 0; - if (yScale.options.stacked) { + if (xScale.options.stacked) { return leftTick + (ruler.categoryWidth / 2) + ruler.categorySpacing; } -- 2.47.2