axidio-styleguide-library1-v2 0.4.62 → 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');
|
|
@@ -8252,7 +8261,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8252
8261
|
.on('click', (d) => this.handleBarClick(d, metaData, self))
|
|
8253
8262
|
.attr('x', (d) => this.calculateBarX(d, data, x, xSubgroup, self, tempScale))
|
|
8254
8263
|
.attr('y', (d) => this.calculateBarY(d, y, height, self))
|
|
8255
|
-
.attr('width', (d) =>
|
|
8264
|
+
.attr('width', (d) => {
|
|
8265
|
+
let width = this.calculateBarWidth(d, data, subgroups, x, xSubgroup, self, tempScale);
|
|
8266
|
+
if (isria && self.chartData.data.length >= 8) {
|
|
8267
|
+
width = Math.max(0, width - 30); // Prevent negative width
|
|
8268
|
+
}
|
|
8269
|
+
return width;
|
|
8270
|
+
})
|
|
8256
8271
|
.attr('height', (d) => this.calculateBarHeight(d, y, height, self))
|
|
8257
8272
|
.style('cursor', () => (metaData.hasDrillDown && !isria) ? 'pointer' : 'default')
|
|
8258
8273
|
.attr('fill', (d) => this.getBarColor(d, metaData, self));
|