axidio-styleguide-library1-v2 0.0.791 → 0.0.792
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
|
/**
|
|
@@ -8947,8 +8946,38 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8947
8946
|
}
|
|
8948
8947
|
})
|
|
8949
8948
|
.attr('x', function (d) {
|
|
8950
|
-
|
|
8951
|
-
|
|
8949
|
+
if (self.chartConfiguration.isDrilldownChart) {
|
|
8950
|
+
data.map((indiv) => {
|
|
8951
|
+
if (indiv.name == d.name) {
|
|
8952
|
+
let keys = Object.keys(indiv).filter((temp, i) => i != 0);
|
|
8953
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
8954
|
+
if (x.bandwidth() > 100) {
|
|
8955
|
+
if (self.chartData.data.length == 1) {
|
|
8956
|
+
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
8957
|
+
tempScale.range([
|
|
8958
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
8959
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
8960
|
+
]);
|
|
8961
|
+
// .padding(0.05);
|
|
8962
|
+
}
|
|
8963
|
+
else
|
|
8964
|
+
tempScale.range([
|
|
8965
|
+
0 + (x.bandwidth() - 300) / 2,
|
|
8966
|
+
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
8967
|
+
]);
|
|
8968
|
+
// .padding(0.05);
|
|
8969
|
+
}
|
|
8970
|
+
else
|
|
8971
|
+
tempScale.range([
|
|
8972
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
8973
|
+
x.bandwidth() - (x.bandwidth() - 125) / 2,
|
|
8974
|
+
]);
|
|
8975
|
+
}
|
|
8976
|
+
}
|
|
8977
|
+
});
|
|
8978
|
+
return tempScale(d.key);
|
|
8979
|
+
}
|
|
8980
|
+
return xSubgroup(d.key);
|
|
8952
8981
|
})
|
|
8953
8982
|
.attr('y', function (d) {
|
|
8954
8983
|
if (d.value == -1) {
|
|
@@ -8966,9 +8995,40 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8966
8995
|
return y(0);
|
|
8967
8996
|
})
|
|
8968
8997
|
.attr('width', function (d) {
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8998
|
+
if (self.chartConfiguration.isDrilldownChart) {
|
|
8999
|
+
// var tempScale;
|
|
9000
|
+
data.map((indiv) => {
|
|
9001
|
+
if (indiv.name == d.name) {
|
|
9002
|
+
let keys = Object.keys(indiv).filter((temp, i) => i != 0);
|
|
9003
|
+
var temp;
|
|
9004
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
9005
|
+
if (x.bandwidth() > 100) {
|
|
9006
|
+
if (self.chartData.data.length == 1) {
|
|
9007
|
+
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9008
|
+
tempScale.range([
|
|
9009
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
9010
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9011
|
+
]);
|
|
9012
|
+
// .padding(0.05);
|
|
9013
|
+
}
|
|
9014
|
+
else
|
|
9015
|
+
tempScale.range([
|
|
9016
|
+
0 + (x.bandwidth() - 250) / 2,
|
|
9017
|
+
x.bandwidth() - (x.bandwidth() - 250) / 2,
|
|
9018
|
+
]);
|
|
9019
|
+
// .padding(0.05);
|
|
9020
|
+
}
|
|
9021
|
+
else
|
|
9022
|
+
tempScale.range([
|
|
9023
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
9024
|
+
x.bandwidth() - (x.bandwidth() - 125) / 2,
|
|
9025
|
+
]);
|
|
9026
|
+
}
|
|
9027
|
+
}
|
|
9028
|
+
});
|
|
9029
|
+
return tempScale.bandwidth();
|
|
9030
|
+
}
|
|
9031
|
+
return xSubgroup.bandwidth();
|
|
8972
9032
|
})
|
|
8973
9033
|
.attr('height', function (d) {
|
|
8974
9034
|
if (d.value == -1) {
|