🐛 Fix label on horizontal chart for axis (#113452)

This commit is contained in:
Marco Liberati 2021-09-30 12:37:01 +02:00 committed by GitHub
parent bbf3d4b9ca
commit 3bd687e6ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: