Skip to content

Commit

Permalink
Add offset to axis length instead of padding to chart area
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake authored and jhaenchen committed Aug 21, 2018
1 parent 3830216 commit da55e7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scales/scale.category.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = function() {
}

if (me.isHorizontal()) {
var valueWidth = me.width / offsetAmt;
var valueWidth = (me.width - 5) / offsetAmt;
var widthOffset = (valueWidth * (index - me.minIndex));

if (offset) {
Expand Down

0 comments on commit da55e7e

Please sign in to comment.