axidio-styleguide-library1-v2 0.0.879 → 0.0.880
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.
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +2 -2
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +14 -6
- package/fesm2022/axidio-styleguide-library1-v2.mjs +15 -7
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7571,7 +7571,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7571
7571
|
? xScale.bandwidth()
|
|
7572
7572
|
: self.chartConfiguration.isDrilldownChart &&
|
|
7573
7573
|
self.chartData.data.length <= 3
|
|
7574
|
-
?
|
|
7574
|
+
? 70
|
|
7575
7575
|
: xScale.bandwidth() * 0.8;
|
|
7576
7576
|
})
|
|
7577
7577
|
// .style('cursor', 'pointer');
|
|
@@ -9048,30 +9048,38 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9048
9048
|
if (x.bandwidth() > 100) {
|
|
9049
9049
|
if (self.chartData.data.length == 1) {
|
|
9050
9050
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9051
|
-
|
|
9051
|
+
tempScale.range([
|
|
9052
9052
|
0 + (x.bandwidth() - 125) / 2,
|
|
9053
9053
|
x.bandwidth() - (x.bandwidth() - 125) / 2,
|
|
9054
9054
|
]);
|
|
9055
9055
|
// .padding(0.05);
|
|
9056
9056
|
}
|
|
9057
9057
|
else
|
|
9058
|
-
|
|
9058
|
+
tempScale.range([
|
|
9059
9059
|
0 + (x.bandwidth() - 125) / 2,
|
|
9060
9060
|
x.bandwidth() - (x.bandwidth() - 125) / 2,
|
|
9061
9061
|
]);
|
|
9062
9062
|
// .padding(0.05);
|
|
9063
9063
|
}
|
|
9064
9064
|
else
|
|
9065
|
-
|
|
9065
|
+
tempScale.range([
|
|
9066
9066
|
0 + (x.bandwidth() - 125) / 2,
|
|
9067
9067
|
x.bandwidth() - (x.bandwidth() - 125) / 2,
|
|
9068
9068
|
]);
|
|
9069
9069
|
}
|
|
9070
9070
|
}
|
|
9071
9071
|
});
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9072
|
+
return self.isZoomedOut
|
|
9073
|
+
? tempScale.bandwidth()
|
|
9074
|
+
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9075
|
+
? tempScale.bandwidth() * 0.5
|
|
9076
|
+
: tempScale.bandwidth();
|
|
9077
|
+
}
|
|
9078
|
+
return self.isZoomedOut
|
|
9079
|
+
? tempScale.bandwidth()
|
|
9080
|
+
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9081
|
+
? tempScale.bandwidth() * 0.5
|
|
9082
|
+
: tempScale.bandwidth();
|
|
9075
9083
|
})
|
|
9076
9084
|
.attr('height', function (d) {
|
|
9077
9085
|
if (d.value == -1) {
|