axidio-styleguide-library1-v2 0.0.787 → 0.0.789

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,14 +8892,15 @@ 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()]).padding(0.5);
8895
+ xSubgroup.range([0, x.bandwidth()])
8896
+ .padding(this.isZoomedOut ? 0.1 : 0.3);
8896
8897
  }
8897
8898
  else {
8898
8899
  /**
8899
8900
  * used to make grouped bars with lesser width as we are not using padding for width
8900
8901
  * used by weekly charts
8901
8902
  */
8902
- xSubgroup.range([0, x.bandwidth()]).padding(0.5);
8903
+ xSubgroup.range([0, x.bandwidth()]);
8903
8904
  }
8904
8905
  // if (this.chartConfiguration.isDrilldownChart) {
8905
8906
  // }
@@ -9008,27 +9009,28 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9008
9009
  tempScale.range([
9009
9010
  0 + (x.bandwidth() - 200) / 2,
9010
9011
  x.bandwidth() - (x.bandwidth() - 200) / 2,
9011
- ]);
9012
+ ]).paddingInner(0.3);
9012
9013
  // .padding(0.05);
9013
9014
  }
9014
9015
  else
9015
9016
  tempScale.range([
9016
9017
  0 + (x.bandwidth() - 300) / 2,
9017
9018
  x.bandwidth() - (x.bandwidth() - 300) / 2,
9018
- ]);
9019
+ ]).paddingInner(0.3);
9019
9020
  // .padding(0.05);
9020
9021
  }
9021
9022
  else
9022
9023
  tempScale.range([
9023
9024
  0 + (x.bandwidth() - 125) / 2,
9024
9025
  x.bandwidth() - (x.bandwidth() - 125) / 2,
9025
- ]);
9026
+ ]).paddingInner(0.3);
9026
9027
  }
9027
9028
  }
9028
9029
  });
9029
9030
  return tempScale.bandwidth();
9030
9031
  }
9031
- return xSubgroup.bandwidth() * 0.6;
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) {