axidio-styleguide-library1-v2 0.4.63 → 0.4.65
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.
|
@@ -7871,6 +7871,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7871
7871
|
// RIA + single subgroup → remove domain
|
|
7872
7872
|
if (isria && (subgroups.length > 1 && self.chartData.data.length === 1)) {
|
|
7873
7873
|
g.select('.domain').remove();
|
|
7874
|
+
// Increase domain line length
|
|
7875
|
+
const extra = 20; // increase by 20px on right
|
|
7876
|
+
const originalWidth = x.range()[1];
|
|
7877
|
+
const domain = g.select('.domain');
|
|
7878
|
+
domain.attr('d', `M0,0 H${originalWidth + extra}`);
|
|
7879
|
+
domain.attr('transform', 'translate(-10,0)');
|
|
7874
7880
|
return;
|
|
7875
7881
|
}
|
|
7876
7882
|
// Default behavior
|
|
@@ -7959,6 +7965,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7959
7965
|
.attr('x', 5)
|
|
7960
7966
|
.style('text-anchor', 'middle');
|
|
7961
7967
|
}
|
|
7968
|
+
if (isria && self.chartData.data.length >= 8) {
|
|
7969
|
+
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7970
|
+
.attr('x', -20);
|
|
7971
|
+
}
|
|
7962
7972
|
// ✅ Tablet View — Rotate if text > 10 characters
|
|
7963
7973
|
if (isTablet) {
|
|
7964
7974
|
const textNodes = svg.selectAll('g.x1.axis1 g.tick text');
|