axidio-styleguide-library1-v2 0.0.976 → 0.0.978

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.
@@ -8551,7 +8551,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8551
8551
  var height = parseInt(verticalstackedcontainer.style('height')) *
8552
8552
  (self.chartConfiguration.svgHeight / 100) -
8553
8553
  margin.top -
8554
- margin.bottom;
8554
+ margin.bottom + 30;
8555
8555
  /**
8556
8556
  * entire height used in weekly charts as x axis needed to be displayed at the bottom of the chart
8557
8557
  */
@@ -9008,19 +9008,20 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9008
9008
  });
9009
9009
  }
9010
9010
  var xSubgroup = d3.scaleBand().domain(subgroups);
9011
- if (subgroups.length > 1 && !this.isZoomedOut) {
9011
+ // Weekly shipped/planned daily grouped chart: increase bar width for both zoom-in and zoom-out views
9012
+ if (subgroups.length > 1 && this.chartConfiguration.isMultiChartGridLine) {
9013
+ xSubgroup.range([0, x.bandwidth() * 1.2]).padding(0.05);
9014
+ }
9015
+ else if (subgroups.length > 1 && !this.isZoomedOut) {
9012
9016
  // For grouped bar charts in zoom-in view, reduce padding between bars
9013
- xSubgroup.range([0, x.bandwidth()]);
9017
+ xSubgroup.range([0, x.bandwidth()]).padding(0.05);
9014
9018
  }
9015
9019
  else if (subgroups.length === 1 && !this.isZoomedOut) {
9016
9020
  // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
9017
9021
  xSubgroup.range([0, 80]);
9018
9022
  }
9019
- else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9020
- xSubgroup.range([0, x.bandwidth()]);
9021
- }
9022
9023
  else {
9023
- // used to make grouped bars with lesser width as we are not using padding for width
9024
+ // All other cases (including zoomed-out), use full bandwidth
9024
9025
  xSubgroup.range([0, x.bandwidth()]);
9025
9026
  }
9026
9027
  // if (this.chartConfiguration.isDrilldownChart) {