diff --git a/x-pack/plugins/lens/public/xy_visualization/visualization_helpers.tsx b/x-pack/plugins/lens/public/xy_visualization/visualization_helpers.tsx index 22c3c7e895323..e6bf460adbd2c 100644 --- a/x-pack/plugins/lens/public/xy_visualization/visualization_helpers.tsx +++ b/x-pack/plugins/lens/public/xy_visualization/visualization_helpers.tsx @@ -40,9 +40,9 @@ export function getAxisName( defaultMessage: 'Horizontal bottom axis', }); if (axis === 'yLeft') { - return isHorizontal ? horizontalTop : verticalLeft; + return isHorizontal ? horizontalBottom : verticalLeft; } - return isHorizontal ? horizontalBottom : verticalRight; + return isHorizontal ? horizontalTop : verticalRight; } // min requirement for the bug: