axidio-styleguide-library1-v2 0.0.926 → 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.
|
@@ -8816,6 +8816,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8816
8816
|
return self.isHeaderVisible ? short_tick_length_bg + 25 : short_tick_length_bg;
|
|
8817
8817
|
})
|
|
8818
8818
|
.attr('x', function (d) {
|
|
8819
|
+
if (isria && self.chartData.data.length > 8) {
|
|
8820
|
+
return -10;
|
|
8821
|
+
}
|
|
8819
8822
|
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
8820
8823
|
return -25; // Move first line text slightly to the left too
|
|
8821
8824
|
}
|
|
@@ -8823,6 +8826,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8823
8826
|
})
|
|
8824
8827
|
.text(function (d) {
|
|
8825
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
|
+
}
|
|
8826
8833
|
if (isMobile && !self.isHeaderVisible) {
|
|
8827
8834
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8828
8835
|
return firstPart.substring(0, 3).toLowerCase();
|
|
@@ -8844,6 +8851,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8844
8851
|
return d.trim().substring(0, d.indexOf(' ')).toLowerCase();
|
|
8845
8852
|
}
|
|
8846
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;
|
|
8847
8860
|
});
|
|
8848
8861
|
if (!isMobile) {
|
|
8849
8862
|
svg
|