@swimlane/ngx-charts 20.2.2-beta.3 → 20.2.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1582,14 +1582,14 @@ class XAxisTicksComponent {
|
|
|
1582
1582
|
const maxAllowedLines = 5;
|
|
1583
1583
|
let maxLines = this.rotateTicks ? Math.floor(this.scale.step() / 14) : maxAllowedLines;
|
|
1584
1584
|
if (maxLines <= 1) {
|
|
1585
|
-
return [label];
|
|
1585
|
+
return [this.tickTrim(label)];
|
|
1586
1586
|
}
|
|
1587
1587
|
const possibleStringLength = Math.max(this.maxPossibleLengthForTick, this.maxTickLength);
|
|
1588
1588
|
maxLines = Math.min(maxLines, maxAllowedLines);
|
|
1589
1589
|
const lines = getTickLines(label, possibleStringLength, maxLines < 1 ? 1 : maxLines);
|
|
1590
1590
|
return lines;
|
|
1591
1591
|
}
|
|
1592
|
-
return [label];
|
|
1592
|
+
return [this.tickTrim(label)];
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
1595
|
XAxisTicksComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: XAxisTicksComponent, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|