Skip to content

Commit

Permalink
Merge pull request #1604 from nnnick/fix/stacked-bar-x
Browse files Browse the repository at this point in the history
Fixes bar charts when only Y scale is in stacked mode
  • Loading branch information
tannerlinsley committed Nov 2, 2015
2 parents b823bae + 2c04a81 commit 50d9389
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controllers/controller.bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 50d9389

Please sign in to comment.