Merge pull request #1604 from nnnick/fix/stacked-bar-x

Fixes bar charts when only Y scale is in stacked mode
This commit is contained in:
Tanner Linsley 2015-11-01 18:36:55 -07:00
commit 50d9389dce

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