axidio-styleguide-library1-v2 0.0.977 → 0.0.979

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.
@@ -7367,9 +7367,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7367
7367
  /*.order(d3.stackOrder)*/
7368
7368
  .offset(d3.stackOffsetNone);
7369
7369
  var layers = stack(data);
7370
- data.sort(function (a, b) {
7371
- return b.total - a.total;
7372
- });
7370
+ // data.sort(function (a, b) {
7371
+ // return b.total - a.total;
7372
+ // });
7373
7373
  let lineYscale;
7374
7374
  if (lineData != null) {
7375
7375
  lineYscale = d3
@@ -9008,20 +9008,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9008
9008
  });
9009
9009
  }
9010
9010
  var xSubgroup = d3.scaleBand().domain(subgroups);
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) {
9011
+ if (subgroups.length > 1 && !this.isZoomedOut) {
9016
9012
  // For grouped bar charts in zoom-in view, reduce padding between bars
9017
9013
  xSubgroup.range([0, x.bandwidth()]).padding(0.05);
9018
9014
  }
9019
- else if (subgroups.length === 1 && !this.isZoomedOut) {
9020
- // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
9021
- xSubgroup.range([0, 80]);
9015
+ else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9016
+ xSubgroup.range([0, x.bandwidth()]);
9022
9017
  }
9023
9018
  else {
9024
- // All other cases (including zoomed-out), use full bandwidth
9019
+ // used to make grouped bars with lesser width as we are not using padding for width
9025
9020
  xSubgroup.range([0, x.bandwidth()]);
9026
9021
  }
9027
9022
  // if (this.chartConfiguration.isDrilldownChart) {
@@ -9161,13 +9156,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9161
9156
  return self.isZoomedOut
9162
9157
  ? tempScale.bandwidth()
9163
9158
  : self.chartData.data.length && self.chartData.data.length > 8
9164
- ? tempScale.bandwidth()
9159
+ ? tempScale.bandwidth() * 0.5
9165
9160
  : tempScale.bandwidth();
9166
9161
  }
9167
9162
  return self.isZoomedOut
9168
9163
  ? tempScale.bandwidth()
9169
9164
  : self.chartData.data.length && self.chartData.data.length > 8
9170
- ? tempScale.bandwidth()
9165
+ ? tempScale.bandwidth() * 0.5
9171
9166
  : tempScale.bandwidth();
9172
9167
  })
9173
9168
  .attr('height', function (d) {