axidio-styleguide-library1-v2 0.6.90 → 0.6.92

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.
@@ -3527,14 +3527,15 @@ class GroupChartComponent extends ComponentUniqueId {
3527
3527
  const baseWidth = containerWidth - leftSvgWidth - rightSvgWidth;
3528
3528
  const dataLength = this.chartData.data.length;
3529
3529
  let width = baseWidth;
3530
+ // FIXED: Increase width for tablet and mobile to create more spacing
3530
3531
  const isTablet = window.innerWidth <= 1024 && window.innerWidth > 768;
3531
3532
  const isMobile = window.innerWidth <= 768;
3532
3533
  let widthMultiplier = 1;
3533
3534
  if (isMobile) {
3534
- widthMultiplier = 1.4;
3535
+ widthMultiplier = 1.20; // 40% more width = more gaps
3535
3536
  }
3536
3537
  else if (isTablet) {
3537
- widthMultiplier = 1.25;
3538
+ widthMultiplier = 1.10; // 25% more width = more gaps
3538
3539
  }
3539
3540
  if (dataLength > 30 && this.isZoomedOut) {
3540
3541
  const multiplier = this.chartData.dropdownData1 ? 60 : 40;
@@ -3552,6 +3553,7 @@ class GroupChartComponent extends ComponentUniqueId {
3552
3553
  }
3553
3554
  }
3554
3555
  else if (!this.isZoomedOut) {
3556
+ // FIXED: Also apply multiplier to default width for smaller screens
3555
3557
  width = baseWidth * widthMultiplier;
3556
3558
  }
3557
3559
  return width;
@@ -3585,7 +3587,6 @@ class GroupChartComponent extends ComponentUniqueId {
3585
3587
  const { width, height, margin } = dimensions;
3586
3588
  const leftAndRightSpaces = 50;
3587
3589
  const rightSvgWidth = 60;
3588
- const barPadding = 0.3;
3589
3590
  const groups = d3.map(data, (d) => d.name).keys();
3590
3591
  let x;
3591
3592
  if (this.chartConfiguration.isMultiChartGridLine !== undefined) {
@@ -3593,7 +3594,7 @@ class GroupChartComponent extends ComponentUniqueId {
3593
3594
  .scaleBand()
3594
3595
  .rangeRound([0, width])
3595
3596
  .align(0.5)
3596
- .padding(barPadding)
3597
+ .padding(0.5)
3597
3598
  .domain(data.map((d) => d.name.toLowerCase()).reverse());
3598
3599
  }
3599
3600
  else {
@@ -3601,7 +3602,7 @@ class GroupChartComponent extends ComponentUniqueId {
3601
3602
  .scaleBand()
3602
3603
  .domain(groups.reverse())
3603
3604
  .range([leftAndRightSpaces, width - rightSvgWidth - leftAndRightSpaces])
3604
- .padding(barPadding);
3605
+ .padding(0.3);
3605
3606
  }
3606
3607
  const xScaleFromOrigin = d3.scaleBand().domain(groups).range([0, width - rightSvgWidth]);
3607
3608
  const xSubgroup = d3.scaleBand().domain(keyList).range([0, x.bandwidth()]);