From: Evert Timberg Date: Mon, 2 Nov 2015 01:26:58 +0000 (-0500) Subject: Use correct option to detect stacked mode along x axis. X-Git-Tag: 2.0.0-beta1~35^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1604%2Fhead;p=thirdparty%2FChart.js.git Use correct option to detect stacked mode along x axis. --- 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; }