From a0ec93b9a1dad05d3b7d453f3aa129a06eb3eb62 Mon Sep 17 00:00:00 2001 From: Sergio Clebal Date: Tue, 26 Oct 2021 12:58:33 +0200 Subject: [PATCH] The first X axis value is partially hidden [sc-188711] --- .../react-ui/src/widgets/HistogramWidgetUI.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/react-ui/src/widgets/HistogramWidgetUI.js b/packages/react-ui/src/widgets/HistogramWidgetUI.js index b09dcdde9..461304c08 100644 --- a/packages/react-ui/src/widgets/HistogramWidgetUI.js +++ b/packages/react-ui/src/widgets/HistogramWidgetUI.js @@ -45,10 +45,11 @@ function __generateDefaultConfig( ) { return { grid: { - left: theme.spacing(0), + left: theme.spacing(0.5), top: theme.spacing(2), - right: theme.spacing(0), - bottom: theme.spacing(3) + right: theme.spacing(1), + bottom: theme.spacing(1), + containLabel: true }, axisPointer: { lineStyle: { @@ -104,12 +105,8 @@ function __generateDefaultConfig( type: 'value', axisLabel: { margin: 0, - padding: [ - 0, - 0, - theme.typography.charts.fontSize * theme.typography.charts.lineHeight + 4, - 0 - ], + verticalAlign: 'bottom', + padding: [0, 0, theme.typography.charts.fontSize, 0], show: true, showMaxLabel: true, showMinLabel: false,