axidio-styleguide-library1-v2 0.4.63 → 0.4.64
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,11 @@ 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}`);
|
|
7874
7879
|
return;
|
|
7875
7880
|
}
|
|
7876
7881
|
// Default behavior
|
|
@@ -7959,6 +7964,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7959
7964
|
.attr('x', 5)
|
|
7960
7965
|
.style('text-anchor', 'middle');
|
|
7961
7966
|
}
|
|
7967
|
+
if (isria && self.chartData.data.length >= 8) {
|
|
7968
|
+
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7969
|
+
.attr('x', -20);
|
|
7970
|
+
}
|
|
7962
7971
|
// ✅ Tablet View — Rotate if text > 10 characters
|
|
7963
7972
|
if (isTablet) {
|
|
7964
7973
|
const textNodes = svg.selectAll('g.x1.axis1 g.tick text');
|