@swimlane/ngx-charts 25.0.3 → 25.0.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.
package/CHANGELOG.md
CHANGED
|
@@ -21464,8 +21464,8 @@ class SankeyComponent extends BaseChartComponent {
|
|
|
21464
21464
|
let width = rect2.x - (rect1.x + rect1.width);
|
|
21465
21465
|
width /= 2;
|
|
21466
21466
|
const charsToFit = Math.floor(width / 7);
|
|
21467
|
-
rect2.label = trimLabel(rect2.originalLabel, charsToFit);
|
|
21468
|
-
rect1.label = trimLabel(rect1.originalLabel, charsToFit);
|
|
21467
|
+
rect2.label = trimLabel(this.labelFormatting ? this.labelFormatting(rect2.originalLabel) : rect2.originalLabel, charsToFit);
|
|
21468
|
+
rect1.label = trimLabel(this.labelFormatting ? this.labelFormatting(rect1.originalLabel) : rect1.originalLabel, charsToFit);
|
|
21469
21469
|
}
|
|
21470
21470
|
});
|
|
21471
21471
|
});
|