@@ -1726,7 +1726,7 @@ export class CartesianAxisLayoutPanel {
17261726 if ( isAxisBreakLabel ) {
17271727 anchor = this . getAnchor ( axis ) ; // for break label self alignment
17281728 } else {
1729- anchor = ( chart . enableRtl ) ? ( ( isEndAnchor ) ? '' : 'end' ) : ( chart . isRtlEnabled || isEndAnchor ) ? 'end' : '' ;
1729+ anchor = ( chart . enableRtl ) ? ( ( isEndAnchor ) ? '' : 'end' ) : ( chart . isRtlEnabled || isEndAnchor ) ? 'end' : 'start ' ;
17301730 }
17311731 options = new TextOption ( chart . element . id + index + '_AxisLabel_' + i , pointX , pointY , anchor ) ;
17321732 options . id = pointsRemoved && axislabelElement &&
@@ -1759,7 +1759,7 @@ export class CartesianAxisLayoutPanel {
17591759 }
17601760 if ( ( i === 0 || ( isInverse && i === len - 1 ) ) && ( options . x < rect . x || ( angle !== 0 && isLeft && options . x < rect . x ) || ( axis . lineBreakAlignment === 'Center' && options . x - ( label . size . width / label . text . length ) / 2 < rect . x && angle === 0 ) ) ) {
17611761 intervalLength -= ( rect . x - options . x ) ;
1762- if ( anchor === '' ) {
1762+ if ( anchor === '' || anchor === 'start' ) {
17631763 if ( options . x <= 0 ) { pointX = options . x = 0 ; }
17641764 else { pointX = options . x ; }
17651765 intervalLength = rect . width / length ;
@@ -1791,7 +1791,7 @@ export class CartesianAxisLayoutPanel {
17911791 ( i === len - 1 || ( isInverse && i === 0 ) ) &&
17921792 (
17931793 ( ( options . x + width ) > chart . availableSize . width - chart . border . width - legendWidth && ( anchor === 'start' || anchor === '' ) && angle === 0 ) ||
1794- ( ( anchor === 'start ' ) && angle !== 0 && ! isLeft && ( options . x + rotatedLabelSize . width ) > chart . availableSize . width - chart . border . width - legendWidth ) ||
1794+ ( ( anchor === '' ) && angle !== 0 && ! isLeft && ( options . x + rotatedLabelSize . width ) > chart . availableSize . width - chart . border . width - legendWidth ) ||
17951795 ( anchor === 'middle' && angle !== 0 && ! isLeft && ( options . x + rotatedLabelSize . width / 2 ) > chart . availableSize . width - chart . border . width - legendWidth ) ||
17961796 ( anchor === 'end' && angle !== 0 && ! isLeft && options . x > chart . availableSize . width - chart . border . width - legendWidth ) ||
17971797 ( anchor === 'end' && options . x > chart . availableSize . width - chart . border . width - legendWidth && angle === 0 ) ||
0 commit comments