axidio-styleguide-library1-v2 0.0.980 → 0.0.982

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.
@@ -7392,14 +7392,14 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7392
7392
  ])
7393
7393
  .domain(data.map(function (d) {
7394
7394
  return d.name;
7395
- }))
7395
+ }).reverse())
7396
7396
  .padding(isMobile ? 0.2 : 0.5);
7397
7397
  var xScaleFromOrigin = d3
7398
7398
  .scaleBand()
7399
7399
  .rangeRound([width - rightSvgWidth, 0])
7400
7400
  .domain(data.map(function (d) {
7401
7401
  return d.name;
7402
- }));
7402
+ }).reverse());
7403
7403
  // ...existing code...
7404
7404
  /**
7405
7405
  * draw second x axis on top
@@ -8642,7 +8642,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8642
8642
  .append('svg')
8643
8643
  // .attr('id', self.uniqueId)
8644
8644
  .attr('width', width - rightSvgWidth)
8645
- .attr('height', height + margin.top + margin.bottom + 60)
8645
+ .attr('height', height + margin.top + margin.bottom + 30)
8646
8646
  // .call(ChartHelper.responsivefy)
8647
8647
  .append('g')
8648
8648
  .attr('transform', 'translate(' + 0 + ',' + margin.top + ')');
@@ -9010,11 +9010,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9010
9010
  var xSubgroup = d3.scaleBand().domain(subgroups);
9011
9011
  if (subgroups.length > 1 && !this.isZoomedOut) {
9012
9012
  // For grouped bar charts in zoom-in view, reduce padding between bars
9013
- xSubgroup.range([0, x.bandwidth()]);
9014
- }
9015
- else if (subgroups.length === 1 && !this.isZoomedOut) {
9016
- // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
9017
- xSubgroup.range([0, 80]);
9013
+ xSubgroup.range([0, x.bandwidth()]).padding(0.05);
9018
9014
  }
9019
9015
  else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9020
9016
  xSubgroup.range([0, x.bandwidth()]);
@@ -9160,13 +9156,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9160
9156
  return self.isZoomedOut
9161
9157
  ? tempScale.bandwidth()
9162
9158
  : self.chartData.data.length && self.chartData.data.length > 8
9163
- ? tempScale.bandwidth()
9159
+ ? tempScale.bandwidth() * 0.5
9164
9160
  : tempScale.bandwidth();
9165
9161
  }
9166
9162
  return self.isZoomedOut
9167
9163
  ? tempScale.bandwidth()
9168
9164
  : self.chartData.data.length && self.chartData.data.length > 8
9169
- ? tempScale.bandwidth()
9165
+ ? tempScale.bandwidth() * 0.5
9170
9166
  : tempScale.bandwidth();
9171
9167
  })
9172
9168
  .attr('height', function (d) {