Make the bottom margin a bit taller (#4807)

This commit is contained in:
Maxime Beauchemin 2018-04-11 15:15:59 -07:00 committed by GitHub
parent 07a5f47c75
commit 683fb6c251
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -493,7 +493,7 @@ export default function nvd3Vis(slice, payload) {
// ---- (x axis labels are rotated 45 degrees so we use height),
// - adjust margins based on these measures and render again
const margins = chart.margin();
margins.bottom = 20;
margins.bottom = 28;
if (fd.x_axis_showminmax) {
// If x bounds are shown, we need a right margin
margins.right = Math.max(20, maxXAxisLabelHeight / 2) + marginPad;
@ -502,7 +502,7 @@ export default function nvd3Vis(slice, payload) {
margins.bottom = maxXAxisLabelHeight + marginPad;
margins.right = maxXAxisLabelHeight + marginPad;
} else if (staggerLabels) {
margins.bottom = 30;
margins.bottom = 40;
}
if (vizType === 'dual_line') {