]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Use correct option to detect stacked mode along x axis. 1604/head
authorEvert Timberg <evert.timberg@gmail.com>
Mon, 2 Nov 2015 01:26:58 +0000 (20:26 -0500)
committerEvert Timberg <evert.timberg@gmail.com>
Mon, 2 Nov 2015 01:26:58 +0000 (20:26 -0500)
src/controllers/controller.bar.js

index a850269a0a994768cff674b46f1574e4f5ce765e..a1c63127139bbdadfca95d132e872b79a58efece 100644 (file)
                        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;
                        }