Use correct option to detect stacked mode along x axis.

This commit is contained in:
Evert Timberg 2015-11-01 20:26:58 -05:00
parent b823bae63e
commit 2c04a816d7

View File

@ -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;
}