axidio-styleguide-library1-v2 0.6.91 → 0.6.93

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,26 +3527,34 @@ 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
- if (this.isZoomedOut) {
3533
- let widthMultiplier = 1;
3534
- if (isMobile) {
3535
- widthMultiplier = 1.4;
3536
- }
3537
- else if (isTablet) {
3538
- widthMultiplier = 1.25;
3539
- }
3540
- if (dataLength > 30) {
3541
- const multiplier = this.chartData.dropdownData1 ? 60 : 40;
3542
- width = Math.max(width, dataLength * multiplier * widthMultiplier);
3533
+ let widthMultiplier = 1;
3534
+ if (isMobile) {
3535
+ widthMultiplier = 1.20; // 40% more width = more gaps
3536
+ }
3537
+ else if (isTablet) {
3538
+ widthMultiplier = 1.02; // 25% more width = more gaps
3539
+ }
3540
+ if (dataLength > 30 && this.isZoomedOut) {
3541
+ const multiplier = this.chartData.dropdownData1 ? 60 : 40;
3542
+ width = Math.max(width, dataLength * multiplier * widthMultiplier);
3543
+ }
3544
+ if (this.chartData.dropdownData2 && width < dataLength * 120 && this.isZoomedOut) {
3545
+ width = dataLength * 120 * widthMultiplier;
3546
+ }
3547
+ if (dataLength > 8 && !this.isZoomedOut) {
3548
+ if (this.chartData.dropdownData2 && width < dataLength * 250) {
3549
+ width = dataLength * 250 * widthMultiplier;
3543
3550
  }
3544
- if (this.chartData.dropdownData2 && width < dataLength * 120) {
3545
- width = dataLength * 120 * widthMultiplier;
3551
+ else {
3552
+ width = dataLength * 160 * widthMultiplier;
3546
3553
  }
3547
3554
  }
3548
- else {
3549
- width = baseWidth;
3555
+ else if (!this.isZoomedOut) {
3556
+ // FIXED: Also apply multiplier to default width for smaller screens
3557
+ width = baseWidth * widthMultiplier;
3550
3558
  }
3551
3559
  return width;
3552
3560
  }