Skip to content

Commit

Permalink
provide extra pad around tick labels
Browse files Browse the repository at this point in the history
  • Loading branch information
archmoj committed Nov 19, 2020
1 parent e8a182d commit 96685b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plots/cartesian/autorange.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,10 @@ function makePadFn(ax, max) {
Math.max(w * cosA, h * sinA) :
Math.max(h * cosA, w * sinA)
);

var fontSize = anchorAxis.tickfont ? anchorAxis.tickfont.size : 12;
// add extra pad around label
morePad += fontSize / 5;
}
});
}
Expand Down
Binary file modified test/image/baselines/ticklabelposition-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/image/baselines/ticklabelposition-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 96685b3

Please sign in to comment.