axidio-styleguide-library1-v2 0.3.92 → 0.3.94
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.
|
@@ -7793,9 +7793,19 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7793
7793
|
})
|
|
7794
7794
|
.call((g) => {
|
|
7795
7795
|
// Increase spacing between axis and labels
|
|
7796
|
-
if (isria) {
|
|
7796
|
+
if (isria && subgroups.length === 1) {
|
|
7797
7797
|
g.selectAll('.tick text')
|
|
7798
|
-
.attr('dy', '
|
|
7798
|
+
.attr('dy', '1em'); // Default is '0.71em', increase for more space
|
|
7799
|
+
}
|
|
7800
|
+
})
|
|
7801
|
+
.call((g) => {
|
|
7802
|
+
// Remove only the last tick
|
|
7803
|
+
if (isria && subgroups.length === 1) {
|
|
7804
|
+
const ticks = g.selectAll('.tick');
|
|
7805
|
+
if (ticks.size() > 0) {
|
|
7806
|
+
// d3.select(ticks.nodes()[ticks.size() - 1]).remove();
|
|
7807
|
+
d3.select(ticks.nodes()[ticks.size() - 1]).select('line').remove();
|
|
7808
|
+
}
|
|
7799
7809
|
}
|
|
7800
7810
|
});
|
|
7801
7811
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|