@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
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## HEAD (unreleased)
4
4
 
5
+ ## 25.0.4
6
+
7
+ - Fix: Applied labelFormatting to overlapping labels in Sankey chart.
8
+
5
9
  ## 25.0.3
6
10
 
7
11
  - Fix: X-axis tick labels were clipped at the bottom of the chart during SSR, notably rotated labels in PDF exports
@@ -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
  });