diff --git a/c3.js b/c3.js index b3d467f..fd83c5e 100644 --- a/c3.js +++ b/c3.js @@ -500,7 +500,7 @@ } function getHorizontalAxisHeight(axisId) { if (axisId === 'x' && !__axis_x_show) { return 0; } - if (axisId === 'x' && __axis_x_height) { return __axis_x_height; } + if (axisId === 'x' && __axis_x_height) { return 10; } if (axisId === 'y' && !__axis_y_show) { return __legend_show && !isLegendRight ? 10 : 1; } if (axisId === 'y2' && !__axis_y2_show) { return rotated_padding_top; } return (getAxisLabelPositionById(axisId).isInner ? 30 : 40) + (axisId === 'y2' ? -10 : 0);