axidio-styleguide-library1-v2 0.4.37 → 0.4.38

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.
@@ -3618,20 +3618,20 @@ class GroupChartComponent extends ComponentUniqueId {
3618
3618
  const { chartContainer, height, margin } = dimensions;
3619
3619
  const rightSvgWidth = 60;
3620
3620
  // FIXED: Calculate total height including margins and extra space
3621
- const totalHeight = height + margin.top + margin.bottom;
3621
+ const totalHeight = height + margin.top + margin.bottom; // Added extra 60px
3622
3622
  const outerContainer = chartContainer
3623
3623
  .append('div')
3624
3624
  .attr('id', this.uniqueId)
3625
3625
  .attr('class', 'outer-container')
3626
3626
  .style('width', '100%')
3627
- .style('height', `${totalHeight}px`)
3628
- .style('overflow', 'hidden') // FIXED: Keep outer container hidden
3627
+ .style('height', `${totalHeight}px`) // Use calculated total height
3628
+ .style('overflow', 'hidden')
3629
3629
  .style('padding-left', `${margin.left}px`)
3630
3630
  .style('padding-right', `${rightSvgWidth}px`)
3631
3631
  .style('margin-left', '15px')
3632
3632
  .style('position', 'relative');
3633
3633
  const leftSvgWidth = margin.left + 20;
3634
- // FIXED: Y-axis SVG with proper height and z-index
3634
+ // FIXED: Y-axis SVG with proper height
3635
3635
  const svgYAxisLeft = outerContainer
3636
3636
  .append('svg')
3637
3637
  .attr('width', leftSvgWidth)
@@ -3639,8 +3639,7 @@ class GroupChartComponent extends ComponentUniqueId {
3639
3639
  .style('position', 'absolute')
3640
3640
  .style('left', '0')
3641
3641
  .style('top', '0')
3642
- .style('z-index', 3) // FIXED: Higher z-index for axes
3643
- .style('background', this.isTransparentBackground ? 'transparent' : '#FFFFFF') // FIXED: Background to prevent bleed-through
3642
+ .style('z-index', 1)
3644
3643
  .append('g')
3645
3644
  .attr('transform', `translate(${margin.left + 5},${margin.top})`);
3646
3645
  const svgYAxisRight = outerContainer
@@ -3650,43 +3649,24 @@ class GroupChartComponent extends ComponentUniqueId {
3650
3649
  .style('position', 'absolute')
3651
3650
  .style('right', '40px')
3652
3651
  .style('top', '0')
3653
- .style('z-index', 3) // FIXED: Higher z-index for axes
3654
- .style('background', this.isTransparentBackground ? 'transparent' : '#FFFFFF') // FIXED: Background to prevent bleed-through
3652
+ .style('z-index', 1)
3655
3653
  .append('g')
3656
3654
  .attr('transform', `translate(0,${margin.top})`);
3657
3655
  const innerContainer = outerContainer
3658
3656
  .append('div')
3659
3657
  .attr('class', 'inner-container')
3660
3658
  .style('width', '100%')
3661
- .style('height', `${totalHeight}px`)
3659
+ .style('height', `${totalHeight}px`) // Match outer container height
3662
3660
  .style('overflow-x', 'auto')
3663
- .style('overflow-y', 'hidden')
3664
- .style('position', 'relative');
3665
- // FIXED: Create a clipping path for the main SVG
3666
- const defs = innerContainer
3667
- .append('svg')
3668
- .attr('width', dimensions.width - rightSvgWidth)
3669
- .attr('height', totalHeight)
3670
- .append('defs');
3671
- defs
3672
- .append('clipPath')
3673
- .attr('id', `clip-${this.uniqueId}`)
3674
- .append('rect')
3675
- .attr('width', dimensions.width - rightSvgWidth)
3676
- .attr('height', totalHeight)
3677
- .attr('x', 0)
3678
- .attr('y', 0);
3679
- // FIXED: Main SVG with clipping and proper z-index
3661
+ .style('overflow-y', 'hidden');
3662
+ // FIXED: Main SVG with increased height
3680
3663
  const svg = innerContainer
3681
3664
  .append('svg')
3682
3665
  .attr('width', dimensions.width - rightSvgWidth)
3683
- .attr('height', totalHeight)
3684
- .style('position', 'relative')
3685
- .style('z-index', 1) // FIXED: Lower z-index than axes
3666
+ .attr('height', totalHeight) // Use total height
3686
3667
  .append('g')
3687
- .attr('transform', `translate(0,${margin.top})`)
3688
- .attr('clip-path', `url(#clip-${this.uniqueId})`); // FIXED: Apply clipping
3689
- return { outerContainer, svgYAxisLeft, svgYAxisRight, svg, totalHeight, innerContainer };
3668
+ .attr('transform', `translate(0,${margin.top})`);
3669
+ return { outerContainer, svgYAxisLeft, svgYAxisRight, svg, totalHeight };
3690
3670
  }
3691
3671
  renderAxes(svgElements, scales, chartContext, dimensions) {
3692
3672
  const { svg, svgYAxisLeft, svgYAxisRight } = svgElements;