axidio-styleguide-library1-v2 0.4.35 → 0.4.37
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;
|
|
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')
|
|
3627
|
+
.style('height', `${totalHeight}px`)
|
|
3628
|
+
.style('overflow', 'hidden') // FIXED: Keep outer container 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
|
|
3634
|
+
// FIXED: Y-axis SVG with proper height and z-index
|
|
3635
3635
|
const svgYAxisLeft = outerContainer
|
|
3636
3636
|
.append('svg')
|
|
3637
3637
|
.attr('width', leftSvgWidth)
|
|
@@ -3639,7 +3639,8 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3639
3639
|
.style('position', 'absolute')
|
|
3640
3640
|
.style('left', '0')
|
|
3641
3641
|
.style('top', '0')
|
|
3642
|
-
.style('z-index',
|
|
3642
|
+
.style('z-index', 3) // FIXED: Higher z-index for axes
|
|
3643
|
+
.style('background', this.isTransparentBackground ? 'transparent' : '#FFFFFF') // FIXED: Background to prevent bleed-through
|
|
3643
3644
|
.append('g')
|
|
3644
3645
|
.attr('transform', `translate(${margin.left + 5},${margin.top})`);
|
|
3645
3646
|
const svgYAxisRight = outerContainer
|
|
@@ -3649,24 +3650,43 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3649
3650
|
.style('position', 'absolute')
|
|
3650
3651
|
.style('right', '40px')
|
|
3651
3652
|
.style('top', '0')
|
|
3652
|
-
.style('z-index',
|
|
3653
|
+
.style('z-index', 3) // FIXED: Higher z-index for axes
|
|
3654
|
+
.style('background', this.isTransparentBackground ? 'transparent' : '#FFFFFF') // FIXED: Background to prevent bleed-through
|
|
3653
3655
|
.append('g')
|
|
3654
3656
|
.attr('transform', `translate(0,${margin.top})`);
|
|
3655
3657
|
const innerContainer = outerContainer
|
|
3656
3658
|
.append('div')
|
|
3657
3659
|
.attr('class', 'inner-container')
|
|
3658
3660
|
.style('width', '100%')
|
|
3659
|
-
.style('height', `${totalHeight}px`)
|
|
3661
|
+
.style('height', `${totalHeight}px`)
|
|
3660
3662
|
.style('overflow-x', 'auto')
|
|
3661
|
-
.style('overflow-y', 'hidden')
|
|
3662
|
-
|
|
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
|
|
3663
3680
|
const svg = innerContainer
|
|
3664
3681
|
.append('svg')
|
|
3665
3682
|
.attr('width', dimensions.width - rightSvgWidth)
|
|
3666
|
-
.attr('height', totalHeight)
|
|
3683
|
+
.attr('height', totalHeight)
|
|
3684
|
+
.style('position', 'relative')
|
|
3685
|
+
.style('z-index', 1) // FIXED: Lower z-index than axes
|
|
3667
3686
|
.append('g')
|
|
3668
|
-
.attr('transform', `translate(0,${margin.top})`)
|
|
3669
|
-
|
|
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 };
|
|
3670
3690
|
}
|
|
3671
3691
|
renderAxes(svgElements, scales, chartContext, dimensions) {
|
|
3672
3692
|
const { svg, svgYAxisLeft, svgYAxisRight } = svgElements;
|
|
@@ -3867,15 +3887,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3867
3887
|
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3868
3888
|
.tickSize(-width)
|
|
3869
3889
|
.tickFormat(''))
|
|
3870
|
-
.
|
|
3871
|
-
.style('color', '#E0E0E0')
|
|
3890
|
+
.style('color', '#535353ff') // FIXED: Lighter grid
|
|
3872
3891
|
.style('opacity', '0.7')
|
|
3873
3892
|
.style('stroke-dasharray', 'none')
|
|
3874
3893
|
.call((g) => g.select('.domain').remove())
|
|
3875
3894
|
.selectAll('line')
|
|
3876
|
-
.style('stroke-width', '0.5px')
|
|
3877
|
-
.attr('x1', 0)
|
|
3878
|
-
.attr('x2', width);
|
|
3895
|
+
.style('stroke-width', '0.5px');
|
|
3879
3896
|
}
|
|
3880
3897
|
renderXAxisGrid(svg, x, height) {
|
|
3881
3898
|
svg
|