diff --git a/src/plugins/vis_type_xy/public/components/xy_settings.tsx b/src/plugins/vis_type_xy/public/components/xy_settings.tsx index e895d893913e8..3682fdf3350b0 100644 --- a/src/plugins/vis_type_xy/public/components/xy_settings.tsx +++ b/src/plugins/vis_type_xy/public/components/xy_settings.tsx @@ -113,15 +113,23 @@ export const XYSettings: FC = ({ }, }, }, + axes: { + axisTitle: { + padding: { + outer: 10, + }, + }, + }, chartMargins: legendPosition === Position.Top || legendPosition === Position.Right ? { - bottom: 10, + bottom: (theme.chartMargins?.bottom ?? 0) + 10, } : { - right: 10, + right: (theme.chartMargins?.right ?? 0) + 10, }, }; + const headerValueFormatter: TickFormatter | undefined = xAxis.ticks?.formatter ? (value) => fillEmptyValue(xAxis.ticks?.formatter?.(value)) ?? '' : undefined;