axidio-styleguide-library1-v2 0.6.59 → 0.6.61
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.
|
@@ -8217,8 +8217,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8217
8217
|
if (dateRangeRegex.test(d.trim())) {
|
|
8218
8218
|
return d.trim().replace(dateRangeRegex, (m, d1, d2) => `${d1} - ${d2}`);
|
|
8219
8219
|
}
|
|
8220
|
+
const isria = this.customChartConfiguration.isRia;
|
|
8221
|
+
if (isria && data.length >= 7) {
|
|
8222
|
+
const first = d.substring(0, d.indexOf(' '));
|
|
8223
|
+
const second = d.substring(d.indexOf(' ') + 1).trim();
|
|
8224
|
+
return `${first}\n${second}`;
|
|
8225
|
+
}
|
|
8220
8226
|
// Handle splitting of multi-part labels
|
|
8221
|
-
if (subgroups.length > 1 && !self.isZoomedOut && data.length
|
|
8227
|
+
if (subgroups.length > 1 && !self.isZoomedOut && data.length > 8 &&
|
|
8222
8228
|
d.indexOf(' ') > -1 && (labelInfo.isDate || labelInfo.isWeek)) {
|
|
8223
8229
|
const first = d.substring(0, d.indexOf(' '));
|
|
8224
8230
|
const second = d.substring(d.indexOf(' ') + 1).trim();
|