@@ -1726,7 +1726,7 @@ export class CartesianAxisLayoutPanel {
|
1726 | 1726 | if (isAxisBreakLabel) {
|
1727 | 1727 | anchor = this.getAnchor(axis); // for break label self alignment
|
1728 | 1728 | } else {
|
1729 |
| -anchor = (chart.enableRtl) ? ((isEndAnchor) ? '' : 'end') : (chart.isRtlEnabled || isEndAnchor) ? 'end' : ''; |
| 1729 | +anchor = (chart.enableRtl) ? ((isEndAnchor) ? '' : 'end') : (chart.isRtlEnabled || isEndAnchor) ? 'end' : 'start'; |
1730 | 1730 | }
|
1731 | 1731 | options = new TextOption(chart.element.id + index + '_AxisLabel_' + i, pointX, pointY, anchor);
|
1732 | 1732 | options.id = pointsRemoved && axislabelElement &&
|
@@ -1759,7 +1759,7 @@ export class CartesianAxisLayoutPanel {
|
1759 | 1759 | }
|
1760 | 1760 | 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))) {
|
1761 | 1761 | intervalLength -= (rect.x - options.x);
|
1762 |
| -if (anchor === '') { |
| 1762 | +if (anchor === '' || anchor === 'start') { |
1763 | 1763 | if (options.x <= 0) { pointX = options.x = 0; }
|
1764 | 1764 | else { pointX = options.x; }
|
1765 | 1765 | intervalLength = rect.width / length;
|
@@ -1791,7 +1791,7 @@ export class CartesianAxisLayoutPanel {
|
1791 | 1791 | (i === len - 1 || (isInverse && i === 0)) &&
|
1792 | 1792 | (
|
1793 | 1793 | ((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) || |
1795 | 1795 | (anchor === 'middle' && angle !== 0 && !isLeft && (options.x + rotatedLabelSize.width / 2) > chart.availableSize.width - chart.border.width - legendWidth) ||
|
1796 | 1796 | (anchor === 'end' && angle !== 0 && !isLeft && options.x > chart.availableSize.width - chart.border.width - legendWidth) ||
|
1797 | 1797 | (anchor === 'end' && options.x > chart.availableSize.width - chart.border.width - legendWidth && angle === 0) ||
|
|
0 commit comments