axidio-styleguide-library1-v2 0.0.794 → 0.0.795
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,8 +8892,7 @@ 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()])
|
|
8896
|
-
.padding(this.isZoomedOut ? 0.1 : 0.3);
|
|
8895
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
8897
8896
|
}
|
|
8898
8897
|
else {
|
|
8899
8898
|
/**
|
|
@@ -9007,15 +9006,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9007
9006
|
if (self.chartData.data.length == 1) {
|
|
9008
9007
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9009
9008
|
tempScale.range([
|
|
9010
|
-
0 + (x.bandwidth() -
|
|
9011
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9009
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
9010
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9012
9011
|
]);
|
|
9013
9012
|
// .padding(0.05);
|
|
9014
9013
|
}
|
|
9015
9014
|
else
|
|
9016
9015
|
tempScale.range([
|
|
9017
|
-
0 + (x.bandwidth() -
|
|
9018
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9016
|
+
0 + (x.bandwidth() - 300) / 2,
|
|
9017
|
+
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
9019
9018
|
]);
|
|
9020
9019
|
// .padding(0.05);
|
|
9021
9020
|
}
|
|
@@ -9029,8 +9028,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9029
9028
|
});
|
|
9030
9029
|
return tempScale.bandwidth();
|
|
9031
9030
|
}
|
|
9032
|
-
|
|
9033
|
-
return self.isZoomedOut ? baseWidth : baseWidth * 0.7;
|
|
9031
|
+
return xSubgroup.bandwidth();
|
|
9034
9032
|
})
|
|
9035
9033
|
.attr('height', function (d) {
|
|
9036
9034
|
if (d.value == -1) {
|
|
@@ -9309,7 +9307,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9309
9307
|
.on('mouseout', function (d) {
|
|
9310
9308
|
state.selectAll('.barstext').remove();
|
|
9311
9309
|
})
|
|
9312
|
-
.on('mouseover',
|
|
9310
|
+
.on('mouseover', (d1) => {
|
|
9313
9311
|
state
|
|
9314
9312
|
.selectAll('text')
|
|
9315
9313
|
.data(function (d) {
|
|
@@ -9339,7 +9337,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9339
9337
|
.style('fill', function (d) {
|
|
9340
9338
|
return metaData.colors[d.key];
|
|
9341
9339
|
})
|
|
9342
|
-
.attr('width', xSubgroup.bandwidth())
|
|
9340
|
+
// .attr('width', xSubgroup.bandwidth())
|
|
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))
|
|
9343
9344
|
.text(function (d) {
|
|
9344
9345
|
return d.value;
|
|
9345
9346
|
});
|