axidio-styleguide-library1-v2 0.0.927 → 0.0.928
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.
|
@@ -8807,16 +8807,18 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8807
8807
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8808
8808
|
.style('font-size', this.isHeaderVisible ? '18px' : '14px')
|
|
8809
8809
|
.attr('y', function (d) {
|
|
8810
|
-
// If grouped chart, no xLabel, and label is a date, add
|
|
8810
|
+
// If grouped chart, no xLabel, and label is a date, add +25
|
|
8811
8811
|
if (subgroups.length > 1 &&
|
|
8812
8812
|
!metaData.xLabel &&
|
|
8813
8813
|
(/\d{2,4}[-\/]\d{2}[-\/]\d{2,4}/.test(d) || /\d{2,4}[-\/]\d{2,4}/.test(d))) {
|
|
8814
|
-
|
|
8815
|
-
return (self.isHeaderVisible ? short_tick_length_bg + 15 : short_tick_length_bg + 25);
|
|
8814
|
+
return (self.isHeaderVisible ? short_tick_length_bg + 25 : short_tick_length_bg) + 25;
|
|
8816
8815
|
}
|
|
8817
8816
|
return self.isHeaderVisible ? short_tick_length_bg + 25 : short_tick_length_bg;
|
|
8818
8817
|
})
|
|
8819
8818
|
.attr('x', function (d) {
|
|
8819
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8820
|
+
return -10;
|
|
8821
|
+
}
|
|
8820
8822
|
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8821
8823
|
return -25; // Move first line text slightly to the left too
|
|
8822
8824
|
}
|
|
@@ -8824,6 +8826,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8824
8826
|
})
|
|
8825
8827
|
.text(function (d) {
|
|
8826
8828
|
var isValueToBeIgnored = false;
|
|
8829
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8830
|
+
// Show only first 3 letters, lowercase
|
|
8831
|
+
return d.substring(0, 3).toLowerCase();
|
|
8832
|
+
}
|
|
8827
8833
|
if (isMobile && !self.isHeaderVisible) {
|
|
8828
8834
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8829
8835
|
return firstPart.substring(0, 3).toLowerCase();
|
|
@@ -8845,6 +8851,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8845
8851
|
return d.trim().substring(0, d.indexOf(' ')).toLowerCase();
|
|
8846
8852
|
}
|
|
8847
8853
|
return d.toLowerCase();
|
|
8854
|
+
}).attr('transform', function (d) {
|
|
8855
|
+
// Rotate if RIA and >8
|
|
8856
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8857
|
+
return 'rotate(-45)';
|
|
8858
|
+
}
|
|
8859
|
+
return null;
|
|
8848
8860
|
});
|
|
8849
8861
|
if (!isMobile) {
|
|
8850
8862
|
svg
|