axidio-styleguide-library1-v2 0.5.48 → 0.5.50
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.
|
@@ -7807,10 +7807,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7807
7807
|
const groups = d3.map(data, (d) => d.name).keys();
|
|
7808
7808
|
// X-axis scale configuration
|
|
7809
7809
|
if (this.chartConfiguration.isMultiChartGridLine !== undefined) {
|
|
7810
|
+
const paddingValue = (isria && subgroups.length === 1) ? 0.1 : 0.5;
|
|
7810
7811
|
x = d3.scaleBand()
|
|
7811
7812
|
.rangeRound([width, 0])
|
|
7812
7813
|
.align(0.5)
|
|
7813
|
-
.padding([
|
|
7814
|
+
.padding([paddingValue])
|
|
7814
7815
|
.domain(data.map((d) => d.name.toLowerCase()));
|
|
7815
7816
|
}
|
|
7816
7817
|
else {
|
|
@@ -8302,7 +8303,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8302
8303
|
.attr('width', (d) => {
|
|
8303
8304
|
let width = this.calculateBarWidth(d, data, subgroups, x, xSubgroup, self, tempScale);
|
|
8304
8305
|
if (isria && self.chartData.data.length >= 8) {
|
|
8305
|
-
width = Math.max(0, width -
|
|
8306
|
+
width = Math.max(0, width - 20); // Prevent negative width
|
|
8306
8307
|
}
|
|
8307
8308
|
return width;
|
|
8308
8309
|
})
|
|
@@ -8858,11 +8859,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8858
8859
|
: parseInt(verticalstackedcontainer.style('height'));
|
|
8859
8860
|
}
|
|
8860
8861
|
if (this.chartConfiguration.isDrilldownChart && !this.isHeaderVisible) {
|
|
8862
|
+
const bottomDeduction = isria ? 50 : 130;
|
|
8861
8863
|
height =
|
|
8862
8864
|
parseInt(verticalstackedcontainer.style('height')) -
|
|
8863
8865
|
margin.top -
|
|
8864
8866
|
margin.bottom -
|
|
8865
|
-
|
|
8867
|
+
bottomDeduction;
|
|
8866
8868
|
}
|
|
8867
8869
|
if (this.chartConfiguration.isHeaderVisible) {
|
|
8868
8870
|
height =
|