File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -352,9 +352,7 @@ export function computeNameBoundingRect(axis: Axis2D): BoundingRect {
352
352
}
353
353
const axisLabelModel = axisModel . getModel ( 'nameTextStyle' ) ;
354
354
const unRotatedNameBoundingRect = axisLabelModel . getTextRect ( axisModel . getModel ( 'name' ) . option ) ;
355
- const defaultRotationYAxis = ( axisModel . get ( 'nameLocation' ) === 'end' || axisModel . get ( 'nameLocation' ) === 'start' )
356
- && ! axis . isHorizontal ( ) ? 0 : - 90 ;
357
- const defaultRotation = axis . dim === 'x' ? 0 : defaultRotationYAxis ;
355
+ const defaultRotation = axis . isHorizontal ( ) ? 0 : - 90 ;
358
356
const rotatedNameBoundingRect = rotateTextRect (
359
357
unRotatedNameBoundingRect , axisModel . getModel ( 'nameRotate' ) . option ?? defaultRotation
360
358
) ;
You can’t perform that action at this time.
0 commit comments