axidio-styleguide-library1-v2 0.0.967 → 0.0.968

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.
@@ -3967,7 +3967,7 @@ class GroupChartComponent extends ComponentUniqueId {
3967
3967
  svg
3968
3968
  .append('g')
3969
3969
  .attr('class', 'x1 axis1')
3970
- .attr('transform', 'translate(-25,' + height + ')')
3970
+ .attr('transform', 'translate(0,' + height + ')')
3971
3971
  .call(d3.axisBottom(x))
3972
3972
  .call((g) => g.select('.domain').remove());
3973
3973
  svg.selectAll('g.x1.axis1 g.tick line').remove();
@@ -9008,14 +9008,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9008
9008
  });
9009
9009
  }
9010
9010
  var xSubgroup = d3.scaleBand().domain(subgroups);
9011
- if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9011
+ if (subgroups.length > 1 && !this.isZoomedOut) {
9012
+ // For grouped bar charts in zoom-in view, reduce padding between bars
9013
+ xSubgroup.range([0, x.bandwidth()]).padding(0.05);
9014
+ }
9015
+ else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
9012
9016
  xSubgroup.range([0, x.bandwidth()]);
9013
9017
  }
9014
9018
  else {
9015
- /**
9016
- * used to make grouped bars with lesser width as we are not using padding for width
9017
- * used by weekly charts
9018
- */
9019
+ // used to make grouped bars with lesser width as we are not using padding for width
9019
9020
  xSubgroup.range([0, x.bandwidth()]);
9020
9021
  }
9021
9022
  // if (this.chartConfiguration.isDrilldownChart) {
@@ -9111,6 +9112,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9111
9112
  return y(0);
9112
9113
  })
9113
9114
  .attr('width', function (d) {
9115
+ // For grouped bar charts in zoom-in view, slightly increase bar width for both bars (shipped and planned)
9116
+ if (subgroups.length > 1 && !self.isZoomedOut) {
9117
+ return xSubgroup.bandwidth() * 1.1;
9118
+ }
9119
+ // Default logic for other chart types
9114
9120
  if (self.chartConfiguration.isDrilldownChart) {
9115
9121
  data.map((indiv) => {
9116
9122
  if (indiv.name == d.name) {
@@ -9297,9 +9303,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9297
9303
  .on('mouseout', handleMouseOut)
9298
9304
  .on('mouseover', handleMouseOver);
9299
9305
  }
9300
- if (this.chartConfiguration.displayTitleOnTop ||
9301
- (this.chartConfiguration.textsOnBar == undefined &&
9302
- this.chartConfiguration.displayTitleOnTop == undefined)) {
9306
+ if (this.chartConfiguration.displayTitleOnTop || (this.chartConfiguration.textsOnBar == undefined &&
9307
+ this.chartConfiguration.displayTitleOnTop == undefined)) {
9303
9308
  state
9304
9309
  .selectAll('rect')
9305
9310
  .on('mouseout', handleMouseOut)