axidio-styleguide-library1-v2 0.7.22 → 0.7.23

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.
@@ -8284,15 +8284,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8284
8284
  const isDateString = /^\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4}$/.test(text) || // e.g. 2025-10-29 or 10/29/2025
8285
8285
  /^(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})\s*[-–]\s*(\d{1,4}[-\/]\d{1,2}[-\/]\d{1,4})$/.test(text);
8286
8286
  if (!isDateString && text.length > 10) {
8287
+ const currentText = d3.select(this);
8287
8288
  const trimmed = text.slice(0, 9) + '…';
8288
- // textNodes
8289
- // .style('font-size', '9px')
8290
- // if (isria) {
8291
- // textNodes.text(trimmed);
8292
- // }
8293
- d3.select(this)
8294
- .style('font-size', '9px')
8295
- .text(isria ? trimmed : text);
8289
+ currentText
8290
+ .style('font-size', '9px');
8291
+ if (isria) {
8292
+ currentText.text(trimmed);
8293
+ }
8296
8294
  }
8297
8295
  });
8298
8296
  }