axidio-styleguide-library1-v2 0.4.96 → 0.4.98
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.
|
@@ -8054,8 +8054,17 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8054
8054
|
// const centerOffset = offset + (reducedBarWidth / 2);
|
|
8055
8055
|
// svg.selectAll('g.x1.axis1 g.tick text')
|
|
8056
8056
|
// .attr('x', centerOffset - (x.bandwidth() / 2));
|
|
8057
|
-
svg.selectAll('g.x1.axis1 g.tick text')
|
|
8058
|
-
|
|
8057
|
+
// svg.selectAll('g.x1.axis1 g.tick text')
|
|
8058
|
+
// .attr('x', -20);
|
|
8059
|
+
const isGroupedBars = subgroups.length > 1; // Multiple bar types defined
|
|
8060
|
+
// Also verify bars are actually side-by-side by checking first group
|
|
8061
|
+
const firstGroupHasMultipleBars = subgroups.filter(key => {
|
|
8062
|
+
return data[0][key] != null && data[0][key] !== -1;
|
|
8063
|
+
}).length > 1;
|
|
8064
|
+
if (!firstGroupHasMultipleBars) {
|
|
8065
|
+
svg.selectAll('g.x1.axis1 g.tick text')
|
|
8066
|
+
.attr('x', -20);
|
|
8067
|
+
}
|
|
8059
8068
|
}
|
|
8060
8069
|
}
|
|
8061
8070
|
applyXLabelsOnSameLine(svg, subgroups, data, metaData, self, shortTickLengthBg, isMobile, isria) {
|