axidio-styleguide-library1-v2 0.0.909 → 0.0.910
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.
|
@@ -9071,8 +9071,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9071
9071
|
.attr('width', function (d) {
|
|
9072
9072
|
if (self.chartConfiguration.isDrilldownChart) {
|
|
9073
9073
|
// Reduce bar width for single-bar (non-grouped) charts only
|
|
9074
|
-
const reducedBarWidth = 60; // or any value you prefer
|
|
9075
9074
|
let isSingleBar = false;
|
|
9075
|
+
let singleBarWidth = x.bandwidth();
|
|
9076
9076
|
data.map((indiv) => {
|
|
9077
9077
|
if (indiv.name == d.name) {
|
|
9078
9078
|
let keys = Object.keys(indiv).filter((temp, i) => i != 0);
|
|
@@ -9080,9 +9080,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9080
9080
|
// If only one key (besides name), treat as single bar
|
|
9081
9081
|
if (keys.length === 1) {
|
|
9082
9082
|
isSingleBar = true;
|
|
9083
|
+
// If isZoomedOut, reduce width by 30px
|
|
9084
|
+
if (self.isZoomedOut) {
|
|
9085
|
+
singleBarWidth = Math.max(10, x.bandwidth() - 30);
|
|
9086
|
+
}
|
|
9087
|
+
else {
|
|
9088
|
+
singleBarWidth = x.bandwidth();
|
|
9089
|
+
}
|
|
9083
9090
|
tempScale.range([
|
|
9084
|
-
0 + (x.bandwidth() -
|
|
9085
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9091
|
+
0 + (x.bandwidth() - singleBarWidth) / 2,
|
|
9092
|
+
x.bandwidth() - (x.bandwidth() - singleBarWidth) / 2,
|
|
9086
9093
|
]);
|
|
9087
9094
|
}
|
|
9088
9095
|
else if (x.bandwidth() > 100) {
|