axidio-styleguide-library1-v2 0.4.87 → 0.4.89
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.
|
@@ -7917,18 +7917,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
});
|
|
7919
7919
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|
|
7920
|
-
|
|
7921
|
-
const yOffset = (() => {
|
|
7922
|
-
// Single bar in zoom-in view
|
|
7923
|
-
if (subgroups.length === 1 && !self.isZoomedOut) {
|
|
7924
|
-
return 5;
|
|
7925
|
-
}
|
|
7926
|
-
// Multiple bars without xLabel
|
|
7927
|
-
if (subgroups.length > 1 && !metaData.xLabel) {
|
|
7928
|
-
return 32;
|
|
7929
|
-
}
|
|
7930
|
-
return 0;
|
|
7931
|
-
})();
|
|
7920
|
+
const yOffset = subgroups.length > 1 && !metaData.xLabel ? 32 : 0;
|
|
7932
7921
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7933
7922
|
// .attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
7934
7923
|
.attr('class', isria
|
|
@@ -7994,7 +7983,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7994
7983
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7995
7984
|
.attr('x', -20);
|
|
7996
7985
|
}
|
|
7997
|
-
if (!isria && self.chartData.data.length > 11 && !self.isZoomedOut && subgroups.length
|
|
7986
|
+
if (!isria && self.chartData.data.length > 11 && !self.isZoomedOut && !(subgroups.length > 1)) {
|
|
7998
7987
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7999
7988
|
.attr('x', -20);
|
|
8000
7989
|
}
|