axidio-styleguide-library1-v2 0.3.93 → 0.3.95
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.
|
@@ -7785,7 +7785,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7785
7785
|
// .attr('transform', `translate(-35,${translateY})`)
|
|
7786
7786
|
.call(d3.axisBottom(x))
|
|
7787
7787
|
// .call((g) => g.select('.domain').remove());
|
|
7788
|
-
.call((g) => { if (!isria)
|
|
7788
|
+
.call((g) => { if (!isria && subgroups.length === 1)
|
|
7789
7789
|
g.select('.domain').remove(); })
|
|
7790
7790
|
.call((g) => {
|
|
7791
7791
|
// Move only the axis line (domain) to the left
|
|
@@ -7797,6 +7797,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7797
7797
|
g.selectAll('.tick text')
|
|
7798
7798
|
.attr('dy', '1em'); // Default is '0.71em', increase for more space
|
|
7799
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
|
+
}
|
|
7809
|
+
}
|
|
7800
7810
|
});
|
|
7801
7811
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|
|
7802
7812
|
const yOffset = subgroups.length > 1 && !metaData.xLabel ? 32 : 0;
|