axidio-styleguide-library1-v2 0.0.795 → 0.0.796
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.
|
@@ -8892,7 +8892,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8892
8892
|
}
|
|
8893
8893
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
8894
8894
|
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
8895
|
-
xSubgroup.range([0, x.bandwidth()])
|
|
8895
|
+
xSubgroup.range([0, x.bandwidth()])
|
|
8896
|
+
.padding(this.isZoomedOut ? 0.1 : 0.3);
|
|
8896
8897
|
}
|
|
8897
8898
|
else {
|
|
8898
8899
|
/**
|
|
@@ -8962,8 +8963,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8962
8963
|
}
|
|
8963
8964
|
else
|
|
8964
8965
|
tempScale.range([
|
|
8965
|
-
0 + (x.bandwidth() -
|
|
8966
|
-
x.bandwidth() - (x.bandwidth() -
|
|
8966
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
8967
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
8967
8968
|
]);
|
|
8968
8969
|
// .padding(0.05);
|
|
8969
8970
|
}
|
|
@@ -9013,8 +9014,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9013
9014
|
}
|
|
9014
9015
|
else
|
|
9015
9016
|
tempScale.range([
|
|
9016
|
-
0 + (x.bandwidth() -
|
|
9017
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9017
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
9018
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9018
9019
|
]);
|
|
9019
9020
|
// .padding(0.05);
|
|
9020
9021
|
}
|
|
@@ -9028,7 +9029,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9028
9029
|
});
|
|
9029
9030
|
return tempScale.bandwidth();
|
|
9030
9031
|
}
|
|
9031
|
-
|
|
9032
|
+
const baseWidth = xSubgroup.bandwidth();
|
|
9033
|
+
return self.isZoomedOut ? baseWidth : baseWidth * 0.7;
|
|
9032
9034
|
})
|
|
9033
9035
|
.attr('height', function (d) {
|
|
9034
9036
|
if (d.value == -1) {
|
|
@@ -9307,7 +9309,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9307
9309
|
.on('mouseout', function (d) {
|
|
9308
9310
|
state.selectAll('.barstext').remove();
|
|
9309
9311
|
})
|
|
9310
|
-
.on('mouseover', (d1)
|
|
9312
|
+
.on('mouseover', function (d1) {
|
|
9311
9313
|
state
|
|
9312
9314
|
.selectAll('text')
|
|
9313
9315
|
.data(function (d) {
|
|
@@ -9337,10 +9339,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9337
9339
|
.style('fill', function (d) {
|
|
9338
9340
|
return metaData.colors[d.key];
|
|
9339
9341
|
})
|
|
9340
|
-
|
|
9341
|
-
// .attr('width', this.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth() * 0.6)
|
|
9342
|
-
.attr('x', (d) => xSubgroup(d.key) +
|
|
9343
|
-
(this.isZoomedOut ? 0 : (xSubgroup.bandwidth() * 0.4) / 2))
|
|
9342
|
+
.attr('width', xSubgroup.bandwidth())
|
|
9344
9343
|
.text(function (d) {
|
|
9345
9344
|
return d.value;
|
|
9346
9345
|
});
|