axidio-styleguide-library1-v2 0.4.61 → 0.4.63
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.
- package/esm2022/lib/group-chart/group-chart.component.mjs +159 -79
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +2 -2
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +8 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs +166 -80
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/lib/group-chart/group-chart.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -3387,7 +3387,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3387
3387
|
this.chartConfiguration = {};
|
|
3388
3388
|
this.objectKeys = Object.keys;
|
|
3389
3389
|
this.defaultConfiguration = {
|
|
3390
|
-
margin: {
|
|
3390
|
+
"margin": {
|
|
3391
|
+
"top": 30,
|
|
3392
|
+
"left": 110,
|
|
3393
|
+
"right": 40,
|
|
3394
|
+
"bottom": 50
|
|
3395
|
+
},
|
|
3391
3396
|
labelFormatter: ChartHelper.defaultFormatter,
|
|
3392
3397
|
svgHeight: 70,
|
|
3393
3398
|
numberOfYTicks: 5,
|
|
@@ -3398,7 +3403,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3398
3403
|
showLineChartAxis: true,
|
|
3399
3404
|
showValues: true,
|
|
3400
3405
|
headerMenuOptions: HeaderConfigHelper.headerConfig.headerMenuOptions,
|
|
3401
|
-
yAxisGrid:
|
|
3406
|
+
yAxisGrid: true,
|
|
3402
3407
|
legendVisible: true,
|
|
3403
3408
|
isYaxisLabelHidden: false,
|
|
3404
3409
|
backgroundColor: '#FFFFFF',
|
|
@@ -3485,10 +3490,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3485
3490
|
const margin = this.chartConfiguration.margin;
|
|
3486
3491
|
let width = this.calculateWidth(chartContainer, margin);
|
|
3487
3492
|
let height = this.calculateHeight(verticalstackedcontainer, margin);
|
|
3493
|
+
const minHeight = 155;
|
|
3494
|
+
height = Math.max(height, minHeight);
|
|
3488
3495
|
return { width, height, margin, chartContainer, verticalstackedcontainer };
|
|
3489
3496
|
}
|
|
3490
3497
|
calculateWidth(chartContainer, margin) {
|
|
3491
|
-
const
|
|
3498
|
+
const containerWidth = parseInt(chartContainer.style('width'));
|
|
3499
|
+
const leftSvgWidth = margin.left + 20;
|
|
3500
|
+
const rightSvgWidth = 60;
|
|
3501
|
+
const baseWidth = containerWidth - leftSvgWidth - rightSvgWidth;
|
|
3492
3502
|
const dataLength = this.chartData.data.length;
|
|
3493
3503
|
let width = baseWidth;
|
|
3494
3504
|
if (dataLength > 30 && this.isZoomedOut) {
|
|
@@ -3509,23 +3519,28 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3509
3519
|
return width;
|
|
3510
3520
|
}
|
|
3511
3521
|
calculateHeight(verticalstackedcontainer, margin) {
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
if (this.chartConfiguration.isFullScreen && this.chartConfiguration.svgHeight !== 70) {
|
|
3517
|
-
height = this.chartConfiguration.svgHeight;
|
|
3522
|
+
const containerHeight = parseInt(verticalstackedcontainer.style('height')) || 400;
|
|
3523
|
+
let height;
|
|
3524
|
+
if (this.chartConfiguration.isFullScreen) {
|
|
3525
|
+
height = this.chartConfiguration.svgHeight || containerHeight;
|
|
3518
3526
|
}
|
|
3519
|
-
else
|
|
3520
|
-
height
|
|
3527
|
+
else {
|
|
3528
|
+
// FIXED: Use percentage of container height more reliably
|
|
3529
|
+
const svgHeightPercentage = this.chartConfiguration.svgHeight || 70;
|
|
3530
|
+
height = (containerHeight * svgHeightPercentage) / 100;
|
|
3521
3531
|
}
|
|
3532
|
+
// FIXED: Apply margin adjustments consistently
|
|
3533
|
+
height = height - margin.top - margin.bottom;
|
|
3534
|
+
// FIXED: Additional adjustments for headers
|
|
3522
3535
|
if (this.chartConfiguration.isDrilldownChart && !this.isHeaderVisible) {
|
|
3523
|
-
height
|
|
3536
|
+
height -= 130;
|
|
3524
3537
|
}
|
|
3525
|
-
if (this.
|
|
3526
|
-
height
|
|
3538
|
+
else if (this.isHeaderVisible) {
|
|
3539
|
+
height -= 100;
|
|
3527
3540
|
}
|
|
3528
|
-
|
|
3541
|
+
// FIXED: Add the extra 50px you wanted
|
|
3542
|
+
height += 50;
|
|
3543
|
+
return Math.max(height, 150); // Ensure minimum height
|
|
3529
3544
|
}
|
|
3530
3545
|
createScales(chartContext, dimensions) {
|
|
3531
3546
|
const { data, metaData, lineData, keyList } = chartContext;
|
|
@@ -3551,7 +3566,8 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3551
3566
|
}
|
|
3552
3567
|
const xScaleFromOrigin = d3.scaleBand().domain(groups).range([0, width - rightSvgWidth]);
|
|
3553
3568
|
const xSubgroup = d3.scaleBand().domain(keyList).range([0, x.bandwidth()]);
|
|
3554
|
-
|
|
3569
|
+
// FIXED: Improved max value calculation that considers height
|
|
3570
|
+
const maxValue = this.calculateMaxValue(data, keyList, height);
|
|
3555
3571
|
const y = d3.scaleLinear().domain([0, maxValue]).nice().rangeRound([height, 0]);
|
|
3556
3572
|
let lineYscale = null;
|
|
3557
3573
|
if (lineData) {
|
|
@@ -3569,19 +3585,25 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3569
3585
|
rightSvgWidth,
|
|
3570
3586
|
};
|
|
3571
3587
|
}
|
|
3572
|
-
calculateMaxValue(data, keyList) {
|
|
3588
|
+
calculateMaxValue(data, keyList, height) {
|
|
3573
3589
|
let maxValue = d3.max(data, (d) => d3.max(keyList, (key) => +d[key])) || 0;
|
|
3590
|
+
// FIXED: Better handling for zero values
|
|
3574
3591
|
if (maxValue === 0) {
|
|
3575
3592
|
maxValue = this.chartData.targetLineData
|
|
3576
3593
|
? this.chartData.targetLineData.target + 20
|
|
3577
3594
|
: 100;
|
|
3578
3595
|
}
|
|
3596
|
+
// FIXED: Scale based on available height
|
|
3579
3597
|
if (this.chartConfiguration.customYscale) {
|
|
3580
3598
|
maxValue *= this.chartConfiguration.customYscale;
|
|
3581
3599
|
}
|
|
3600
|
+
else if (height > 400) {
|
|
3601
|
+
// Auto-scale for larger heights
|
|
3602
|
+
maxValue *= 1.2;
|
|
3603
|
+
}
|
|
3582
3604
|
if (this.chartData.targetLineData && maxValue < this.chartData.targetLineData.target) {
|
|
3583
3605
|
const target = this.chartData.targetLineData.target;
|
|
3584
|
-
maxValue = maxValue < 10 && target < 10 ? target + 3 : target + 20
|
|
3606
|
+
maxValue = maxValue < 10 && target < 10 ? target + 3 : target + (target * 0.2); // 20% buffer
|
|
3585
3607
|
}
|
|
3586
3608
|
return maxValue;
|
|
3587
3609
|
}
|
|
@@ -3598,46 +3620,59 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3598
3620
|
createSVGStructure(dimensions) {
|
|
3599
3621
|
const { chartContainer, height, margin } = dimensions;
|
|
3600
3622
|
const rightSvgWidth = 60;
|
|
3623
|
+
// FIXED: Calculate total height including margins and extra space
|
|
3624
|
+
const totalHeight = height + margin.top + margin.bottom; // Added extra 60px
|
|
3601
3625
|
const outerContainer = chartContainer
|
|
3602
3626
|
.append('div')
|
|
3603
3627
|
.attr('id', this.uniqueId)
|
|
3604
3628
|
.attr('class', 'outer-container')
|
|
3605
3629
|
.style('width', '100%')
|
|
3606
|
-
.style('height',
|
|
3607
|
-
.style('overflow
|
|
3608
|
-
.style('padding-left',
|
|
3630
|
+
.style('height', `${totalHeight}px`)
|
|
3631
|
+
.style('overflow', 'hidden')
|
|
3632
|
+
.style('padding-left', '0') // Remove left padding from outer container
|
|
3609
3633
|
.style('padding-right', `${rightSvgWidth}px`)
|
|
3610
|
-
.style('margin-left', '
|
|
3634
|
+
.style('margin-left', '0') // Remove left margin
|
|
3635
|
+
.style('position', 'relative');
|
|
3636
|
+
const leftSvgWidth = margin.left + 20;
|
|
3637
|
+
// FIXED: Y-axis SVG with proper height
|
|
3611
3638
|
const svgYAxisLeft = outerContainer
|
|
3612
3639
|
.append('svg')
|
|
3613
|
-
.attr('width',
|
|
3614
|
-
.attr('height',
|
|
3640
|
+
.attr('width', leftSvgWidth)
|
|
3641
|
+
.attr('height', totalHeight)
|
|
3615
3642
|
.style('position', 'absolute')
|
|
3616
3643
|
.style('left', '0')
|
|
3617
|
-
.style('
|
|
3644
|
+
.style('top', '0')
|
|
3645
|
+
.style('z-index', 2) // Increased z-index to ensure it stays above
|
|
3618
3646
|
.append('g')
|
|
3619
|
-
.attr('transform', `translate(${margin.left +
|
|
3647
|
+
.attr('transform', `translate(${margin.left + 5},${margin.top})`);
|
|
3620
3648
|
const svgYAxisRight = outerContainer
|
|
3621
3649
|
.append('svg')
|
|
3622
3650
|
.attr('width', rightSvgWidth)
|
|
3623
|
-
.attr('height',
|
|
3651
|
+
.attr('height', totalHeight)
|
|
3624
3652
|
.style('position', 'absolute')
|
|
3625
|
-
.style('right', '
|
|
3626
|
-
.style('
|
|
3653
|
+
.style('right', '40px')
|
|
3654
|
+
.style('top', '0')
|
|
3655
|
+
.style('z-index', 2) // Increased z-index
|
|
3627
3656
|
.append('g')
|
|
3628
3657
|
.attr('transform', `translate(0,${margin.top})`);
|
|
3658
|
+
// FIXED: Inner container starts AFTER the y-axis labels
|
|
3629
3659
|
const innerContainer = outerContainer
|
|
3630
3660
|
.append('div')
|
|
3631
3661
|
.attr('class', 'inner-container')
|
|
3632
|
-
.style('width',
|
|
3633
|
-
.style('
|
|
3662
|
+
.style('width', `calc(100% - ${leftSvgWidth}px)`)
|
|
3663
|
+
.style('height', `${totalHeight}px`)
|
|
3664
|
+
.style('margin-left', `${leftSvgWidth - 15}px`) // Good adjustment for the 15px offset
|
|
3665
|
+
.style('overflow-x', 'auto')
|
|
3666
|
+
.style('overflow-y', 'hidden')
|
|
3667
|
+
.style('position', 'relative'); // Add this for better positioning context
|
|
3668
|
+
// FIXED: Main SVG with increased height and proper positioning
|
|
3634
3669
|
const svg = innerContainer
|
|
3635
3670
|
.append('svg')
|
|
3636
|
-
.attr('width', dimensions.width
|
|
3637
|
-
.attr('height',
|
|
3671
|
+
.attr('width', dimensions.width)
|
|
3672
|
+
.attr('height', totalHeight)
|
|
3638
3673
|
.append('g')
|
|
3639
3674
|
.attr('transform', `translate(0,${margin.top})`);
|
|
3640
|
-
return { outerContainer, svgYAxisLeft, svgYAxisRight, svg };
|
|
3675
|
+
return { outerContainer, svgYAxisLeft, svgYAxisRight, svg, totalHeight };
|
|
3641
3676
|
}
|
|
3642
3677
|
renderAxes(svgElements, scales, chartContext, dimensions) {
|
|
3643
3678
|
const { svg, svgYAxisLeft, svgYAxisRight } = svgElements;
|
|
@@ -3659,18 +3694,24 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3659
3694
|
renderXAxis(svg, x, xScaleFromOrigin, height, chartContext, keyList) {
|
|
3660
3695
|
const { data, metaData } = chartContext;
|
|
3661
3696
|
if (this.chartConfiguration.isMultiChartGridLine === undefined) {
|
|
3662
|
-
svg
|
|
3697
|
+
const xAxis = svg
|
|
3663
3698
|
.append('g')
|
|
3664
3699
|
.attr('class', 'x1 axis1')
|
|
3665
3700
|
.attr('transform', `translate(0,${height})`)
|
|
3666
|
-
.call(d3.axisBottom(x))
|
|
3667
|
-
|
|
3668
|
-
|
|
3701
|
+
.call(d3.axisBottom(x).tickSize(0));
|
|
3702
|
+
// FIXED: Show X-axis line
|
|
3703
|
+
xAxis
|
|
3704
|
+
.select('.domain')
|
|
3705
|
+
.style('stroke', 'var(--chart-axis-color, #000000)')
|
|
3706
|
+
.style('stroke-width', '1px')
|
|
3707
|
+
.style('display', 'block');
|
|
3708
|
+
xAxis.selectAll('g.tick line').remove();
|
|
3669
3709
|
const textClass = 'lib-xaxis-labels-texts-drilldown';
|
|
3670
|
-
const textSelection =
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3710
|
+
const textSelection = xAxis
|
|
3711
|
+
.selectAll('g.tick text')
|
|
3712
|
+
.attr('class', textClass)
|
|
3713
|
+
.style('fill', 'var(--chart-text-color, #666666)')
|
|
3714
|
+
.style('font-size', '11px');
|
|
3674
3715
|
}
|
|
3675
3716
|
else {
|
|
3676
3717
|
this.renderMultiChartXAxis(svg, x, height, data, metaData);
|
|
@@ -3678,14 +3719,18 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3678
3719
|
if (this.chartConfiguration.xLabelsOnSameLine) {
|
|
3679
3720
|
this.renderXLabelsOnSameLine(svg, data, metaData);
|
|
3680
3721
|
}
|
|
3681
|
-
//
|
|
3682
|
-
svg
|
|
3722
|
+
// Bottom x-axis
|
|
3723
|
+
const xAxis2 = svg
|
|
3683
3724
|
.append('g')
|
|
3684
3725
|
.attr('class', 'x2 axis2')
|
|
3685
3726
|
.attr('transform', `translate(0,${height})`)
|
|
3686
3727
|
.style('color', '#000')
|
|
3687
|
-
.call(d3.axisBottom(xScaleFromOrigin).tickSize(0))
|
|
3688
|
-
|
|
3728
|
+
.call(d3.axisBottom(xScaleFromOrigin).tickSize(0));
|
|
3729
|
+
xAxis2
|
|
3730
|
+
.select('.domain')
|
|
3731
|
+
.style('stroke', 'var(--chart-axis-color, #000000)')
|
|
3732
|
+
.style('stroke-width', '1px')
|
|
3733
|
+
.attr('fill', 'none');
|
|
3689
3734
|
svg.selectAll('g.x2.axis2 g.tick text').style('display', 'none');
|
|
3690
3735
|
if (this.isZoomedOut) {
|
|
3691
3736
|
svg.selectAll('.lib-xaxis-labels-texts-drilldown').attr('class', 'lib-display-hidden');
|
|
@@ -3754,6 +3799,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3754
3799
|
});
|
|
3755
3800
|
}
|
|
3756
3801
|
renderYAxis(svg, svgYAxisLeft, svgYAxisRight, y, dimensions) {
|
|
3802
|
+
// Main Y-axis in chart area (hidden)
|
|
3757
3803
|
svg
|
|
3758
3804
|
.append('g')
|
|
3759
3805
|
.attr('class', 'lib-stacked-y-axis-text yaxis-dashed')
|
|
@@ -3761,19 +3807,34 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3761
3807
|
.attr('transform', 'translate(0,0)')
|
|
3762
3808
|
.call(y)
|
|
3763
3809
|
.style('display', 'none');
|
|
3764
|
-
|
|
3765
|
-
|
|
3810
|
+
// FIXED: Left Y-axis with visible line
|
|
3811
|
+
const yAxisLeft = d3
|
|
3812
|
+
.axisLeft(y)
|
|
3813
|
+
.tickSize(0)
|
|
3814
|
+
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3815
|
+
.tickFormat(this.chartConfiguration.yAxisLabelFomatter);
|
|
3816
|
+
const yAxisGroup = svgYAxisLeft
|
|
3766
3817
|
.append('g')
|
|
3767
3818
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
3768
3819
|
.attr('style', this.chartConfiguration.yAxisCustomTextStyles)
|
|
3769
3820
|
.attr('transform', 'translate(0,0)')
|
|
3770
|
-
.call(
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
.
|
|
3774
|
-
.
|
|
3821
|
+
.call(yAxisLeft);
|
|
3822
|
+
// FIXED: Show Y-axis vertical line
|
|
3823
|
+
yAxisGroup
|
|
3824
|
+
.select('.domain')
|
|
3825
|
+
.style('stroke', 'var(--chart-axis-color, #000000)')
|
|
3826
|
+
.style('stroke-width', '1px')
|
|
3827
|
+
.style('display', 'block');
|
|
3828
|
+
// FIXED: Position Y-axis values with proper spacing
|
|
3829
|
+
yAxisGroup
|
|
3775
3830
|
.selectAll('text')
|
|
3776
|
-
.style('fill', 'var(--chart-text-color)')
|
|
3831
|
+
.style('fill', 'var(--chart-text-color, #666666)')
|
|
3832
|
+
.style('font-size', '11px')
|
|
3833
|
+
.style('font-weight', '400')
|
|
3834
|
+
.attr('x', -6) // FIXED: Small gap from axis line
|
|
3835
|
+
.attr('text-anchor', 'end')
|
|
3836
|
+
.attr('dy', '0.32em');
|
|
3837
|
+
// Right Y-axis (hidden)
|
|
3777
3838
|
svgYAxisRight
|
|
3778
3839
|
.append('g')
|
|
3779
3840
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
@@ -3789,21 +3850,32 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3789
3850
|
}
|
|
3790
3851
|
if (this.chartConfiguration.isYaxisLabelHidden) {
|
|
3791
3852
|
d3.selectAll('.yaxis-dashed > g > text').attr('class', 'lib-display-hidden');
|
|
3853
|
+
// FIXED: Don't hide the Y-axis label element
|
|
3854
|
+
d3.selectAll('.lib-ylabel-visible').style('display', 'block');
|
|
3792
3855
|
}
|
|
3793
3856
|
if (this.chartConfiguration.isYaxisHidden) {
|
|
3794
3857
|
d3.selectAll('.yaxis-dashed').attr('class', 'lib-display-hidden');
|
|
3858
|
+
// FIXED: Keep Y-axis label visible
|
|
3859
|
+
d3.selectAll('.lib-ylabel-visible').style('display', 'block');
|
|
3795
3860
|
}
|
|
3796
3861
|
if (this.chartConfiguration.isYaxisDashed) {
|
|
3797
|
-
d3.selectAll('.yaxis-dashed').style('stroke-dasharray', '5 5').style('color', '#999999');
|
|
3862
|
+
d3.selectAll('.yaxis-dashed .domain').style('stroke-dasharray', '5 5').style('color', '#999999');
|
|
3798
3863
|
}
|
|
3799
3864
|
}
|
|
3800
3865
|
renderYAxisGrid(svg, y, width) {
|
|
3801
3866
|
svg
|
|
3802
3867
|
.append('g')
|
|
3803
|
-
.
|
|
3804
|
-
.
|
|
3805
|
-
.
|
|
3806
|
-
.
|
|
3868
|
+
.attr('class', 'y-axis-grid')
|
|
3869
|
+
.call(d3.axisLeft(y)
|
|
3870
|
+
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3871
|
+
.tickSize(-width)
|
|
3872
|
+
.tickFormat(''))
|
|
3873
|
+
.style('color', '#535353ff') // FIXED: Lighter grid
|
|
3874
|
+
.style('opacity', '0.7')
|
|
3875
|
+
.style('stroke-dasharray', 'none')
|
|
3876
|
+
.call((g) => g.select('.domain').remove())
|
|
3877
|
+
.selectAll('line')
|
|
3878
|
+
.style('stroke-width', '0.5px');
|
|
3807
3879
|
}
|
|
3808
3880
|
renderXAxisGrid(svg, x, height) {
|
|
3809
3881
|
svg
|
|
@@ -3846,10 +3918,20 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3846
3918
|
.append('rect')
|
|
3847
3919
|
.attr('class', 'bars')
|
|
3848
3920
|
.on('click', (d) => this.handleBarClick(d, metaData))
|
|
3849
|
-
.attr('x', (d) =>
|
|
3850
|
-
.
|
|
3921
|
+
.attr('x', (d) => {
|
|
3922
|
+
const barWidth = this.getBarWidth(d, data, x, xSubgroup);
|
|
3923
|
+
const bandWidth = x.bandwidth();
|
|
3924
|
+
return (bandWidth - barWidth) / 2;
|
|
3925
|
+
})
|
|
3926
|
+
.attr('y', (d) => {
|
|
3927
|
+
const value = d.value === -1 ? 0 : d.value;
|
|
3928
|
+
return y(value);
|
|
3929
|
+
})
|
|
3851
3930
|
.attr('width', (d) => this.getBarWidth(d, data, x, xSubgroup))
|
|
3852
|
-
.attr('height', (d) =>
|
|
3931
|
+
.attr('height', (d) => {
|
|
3932
|
+
const value = d.value === -1 ? 0 : d.value;
|
|
3933
|
+
return height - y(value);
|
|
3934
|
+
})
|
|
3853
3935
|
.style('cursor', (d) => (metaData.hasDrillDown && !isRia ? 'pointer' : 'default'))
|
|
3854
3936
|
.attr('fill', (d) => this.getBarColor(d, metaData));
|
|
3855
3937
|
if (!isRia && (this.chartConfiguration.displayTitleOnTop || (!this.chartConfiguration.textsOnBar && !this.chartConfiguration.displayTitleOnTop))) {
|
|
@@ -3873,12 +3955,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3873
3955
|
this.handleClick(d);
|
|
3874
3956
|
}
|
|
3875
3957
|
}
|
|
3876
|
-
getBarX(d, data, x, xSubgroup) {
|
|
3877
|
-
if (this.chartConfiguration.isDrilldownChart) {
|
|
3878
|
-
return this.calculateDrilldownBarX(d, data, x);
|
|
3879
|
-
}
|
|
3880
|
-
return xSubgroup(d.key);
|
|
3881
|
-
}
|
|
3882
3958
|
calculateDrilldownBarX(d, data, x) {
|
|
3883
3959
|
let tempScale;
|
|
3884
3960
|
data.forEach((indiv) => {
|
|
@@ -4074,29 +4150,31 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4074
4150
|
}
|
|
4075
4151
|
}
|
|
4076
4152
|
renderYAxisLabel(svgYAxisLeft, yLabel, height, margin) {
|
|
4153
|
+
// FIXED: Proper Y-axis label with correct positioning
|
|
4077
4154
|
svgYAxisLeft
|
|
4078
4155
|
.append('text')
|
|
4079
|
-
.attr('class', 'lib-axis-group-label
|
|
4156
|
+
.attr('class', 'lib-axis-group-label lib-ylabel-visible')
|
|
4080
4157
|
.attr('style', this.chartConfiguration.yAxisCustomlabelStyles)
|
|
4081
4158
|
.attr('transform', 'rotate(-90)')
|
|
4082
|
-
.attr('y',
|
|
4159
|
+
.attr('y', -margin.left)
|
|
4083
4160
|
.attr('x', 0 - height / 2)
|
|
4084
4161
|
.attr('dy', '1em')
|
|
4085
4162
|
.style('text-anchor', 'middle')
|
|
4086
|
-
.
|
|
4163
|
+
.style('font-size', '13px')
|
|
4164
|
+
.style('fill', 'var(--chart-text-color, #666666)');
|
|
4087
4165
|
if (this.chartConfiguration.isMultiChartGridLine === undefined) {
|
|
4088
|
-
svgYAxisLeft.selectAll('.lib-axis-group-label').
|
|
4166
|
+
svgYAxisLeft.selectAll('.lib-axis-group-label').text(yLabel);
|
|
4089
4167
|
}
|
|
4090
4168
|
else {
|
|
4091
4169
|
svgYAxisLeft
|
|
4092
4170
|
.selectAll('.lib-axis-group-label')
|
|
4093
|
-
.attr('class', 'lib-ylabel-weeklyCharts')
|
|
4171
|
+
.attr('class', 'lib-ylabel-weeklyCharts lib-ylabel-visible')
|
|
4094
4172
|
.text(yLabel.toLowerCase());
|
|
4095
4173
|
}
|
|
4096
4174
|
}
|
|
4097
4175
|
renderXAxisLabel(svg, xLabel, width, height, margin) {
|
|
4098
4176
|
const isAcronym = this.isAcronym(xLabel.replace(/[^A-Za-z]/g, ''));
|
|
4099
|
-
let baseClass = 'lib-axis-group-label
|
|
4177
|
+
let baseClass = 'lib-axis-group-label';
|
|
4100
4178
|
if (this.chartConfiguration.isDrilldownChart) {
|
|
4101
4179
|
baseClass += ' lib-xlabel-drilldowncharts';
|
|
4102
4180
|
}
|
|
@@ -4110,9 +4188,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4110
4188
|
.append('text')
|
|
4111
4189
|
.attr('class', baseClass)
|
|
4112
4190
|
.attr('style', this.chartConfiguration.xAxisCustomlabelStyles)
|
|
4113
|
-
|
|
4191
|
+
// FIXED: Adjusted for reduced bottom margin
|
|
4192
|
+
.attr('transform', `translate(${width / 2},${height + 32})`)
|
|
4114
4193
|
.style('text-anchor', 'middle')
|
|
4115
|
-
.style('fill', 'var(--chart-text-color)')
|
|
4194
|
+
.style('fill', 'var(--chart-text-color, #666666)')
|
|
4195
|
+
.style('font-size', '13px')
|
|
4116
4196
|
.text(isAcronym ? xLabel.toUpperCase() : xLabel.toLowerCase())
|
|
4117
4197
|
.style('text-transform', isAcronym ? 'none' : 'capitalize');
|
|
4118
4198
|
}
|
|
@@ -4226,11 +4306,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4226
4306
|
this.clickEvent.emit(event);
|
|
4227
4307
|
}
|
|
4228
4308
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4229
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: GroupChartComponent, selector: "lib-group-chart", inputs: { chartData: "chartData", customChartConfiguration: "customChartConfiguration" }, outputs: { clickEvent: "clickEvent", headerMenuclickEvent: "headerMenuclickEvent" }, viewQueries: [{ propertyName: "containerElt", first: true, predicate: ["groupchartcontainer"], descendants: true, static: true }, { propertyName: "groupcontainerElt", first: true, predicate: ["groupcontainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n #groupcontainer\r\n class=\"lib-chart-wrapper\"\r\n [ngClass]=\"{ 'lib-no-background': isTransparentBackground }\"\r\n style=\"background-color: var(--card-bg);\"\r\n (resized)=\"onResized($event)\"\r\n>\r\n\r\n<div class=\"header-alt\" *ngIf=\"!isHeaderVisible\">\r\n <lib-chart-header-v2\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (clickEvent)=\"handleClick($event)\"\r\n ></lib-chart-header-v2>\r\n <lib-chart-header-v3\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (compareByFilterSelection)=\"handleCompareByFilterSelection($event)\"\r\n (zoomInZoomOutClick)=\"handleZoominZoomoutClick($event)\"\r\n ></lib-chart-header-v3>\r\n</div>\r\n\r\n <lib-chart-header-v1\r\n [title]=\"chartData.metaData.title\"\r\n [hasDrillDown]=\"chartData.metaData.hasDrillDown\"\r\n [isEditEnabled]=\"chartData.metaData.isEditEnabled\"\r\n [menuOptions]=\"chartConfiguration.headerMenuOptions\"\r\n [isria]=\"customChartConfiguration.isRia\"\r\n [selectedKpiTooltop]=\"chartConfiguration.selectedKpiTooltop\"\r\n (menuOptionClickEvent)=\"handleHeaderMenuClick($event)\"\r\n [isAlertEnabled]=\"isAlertEnabled\"\r\n *ngIf=\"isHeaderVisible\"\r\n></lib-chart-header-v1>\r\n\r\n <div\r\n [style.height]=\"chartConfiguration.svgHeight\"\r\n id=\"groupchartcontainer\"\r\n #groupchartcontainer\r\n class=\"lib-chart-svg\"\r\n ></div>\r\n</div>\r\n", styles: [".lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1;font-size:1.2em}.lib-axis-group-label{font-size:.85em;font-weight:600;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.dots{font-size:10px}.inline__display{display:flex;justify-content:space-around;padding-top:2%}.verticalbar__text{font-style:normal;font-variant:normal;font-weight:400;font-size:13px;line-height:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;opacity:1}.lib-line-label-item{display:inline-block!important;font-size:.85em;margin-right:10px;font-weight:600}.lib-line-label-wrapper-vertical{display:flex;justify-content:center}.target-display{font-size:12px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.title{background-color:#d9d9d9;height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:3px;line-height:1}.title:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #d3d3d3;border-left:solid 10px transparent;border-right:solid 10px transparent}.title-top-text{color:#000;font-size:14px;font-weight:600}.title-bar-name{color:#000;font-size:12px;font-weight:700;text-transform:capitalize}.title-bottom-text{color:#4f4f4f;font-size:12px}.zoomIcons-holder{display:flex;align-items:center;margin-right:15px}.zoomIcons{border:.5px solid #b6b6b6;cursor:pointer;display:flex;justify-content:center;align-items:center;width:30px;height:30px;color:var(--color)!important}.zoom-active{background-color:#2d5ca0;opacity:1}.zoom-inactive{background-color:#d9d9d9;opacity:.5}@media screen and (min-width: 1024px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1024px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1024px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1366px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1366px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1366px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1920px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 1920px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 1920px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 2560px) and (min-height: 500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}.dots{font-size:16px!important}}@media screen and (min-width: 2560px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}.dots{font-size:16px!important}}@media screen and (min-width: 2560px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}}.bottom__text{position:absolute!important;bottom:0!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important}.box__heightwidth{opacity:1;height:10px;width:10px;border:none!important;border-radius:50%}.label__text{margin-right:10px;display:flex;justify-content:center;align-items:center;font-style:normal;font-variant:normal;font-weight:400;font-size:10px;line-height:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;letter-spacing:.2px;color:#707070!important}.lib-verticalstack-labels-ontop-weklycharts{font-style:normal;font-variant:normal;font-weight:700;font-size:10px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.lib-verticalstack-title-ontop{font-style:normal;font-variant:normal;font-size:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.marginLeft-20{margin-left:20px}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}\n", ".lib-chart-wrapper{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;background:#fff 0% 0% no-repeat padding-box;position:relative}.lib-chart-wrapper-wo-shadow{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background){background-color:#2e3640}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background) .chart-title{color:#fff}.lib-chart-svg{width:100%}.lib-chart-header{text-align:center;background-color:#052340;color:#fff;width:100%;height:17%;word-spacing:.5px;line-height:1.8;font-weight:700;padding-top:2%;letter-spacing:0;font-size:1.2em}.lib-donut-chart-footer{width:100%;text-align:right}.lib-donut-label-text{font-size:.9em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1}.lib-donut-label-icon{display:inline-block;width:10px;height:10px;margin-right:20px;border-radius:3px}.lib-donut-label-item{font-weight:400;font-size:.85em;color:#2f2f2f}.lib-donut-justified-label-wrapper{width:100%;display:inline-block;text-align:center;list-style-type:none}.lib-donut-justified-label-item{font-weight:400;font-size:.85em;color:#2f2f2f;display:inline-block;text-align:left;padding:0 10px}.lib-donut-justified-label-icon{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px}.lib-no-background{background:none!important}.lib-display-hidden{display:none}.lib-ylabel-weeklyCharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.07px;text-transform:capitalize;color:#000}.lib-data-labels-weeklycharts{font-style:normal;font-variant:normal;font-weight:400;font-size:12px;line-height:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.06px;color:#000}.lib-data-labels-angled-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:9.5px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:.4px;text-anchor:start}.lib-xaxis-labels-texts-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:11px;letter-spacing:-.05px;fill:#000}.lib-xaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:-1px;color:#000;opacity:1;text-transform:capitalize}.lib-white-space-nowrap{white-space:nowrap}.lib-xaxis-labels-texts-drilldown-alt{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:10px;letter-spacing:0px;color:#000;opacity:1;text-transform:capitalize}.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:0px;color:#000!important;opacity:1}.lib-ylabel-drilldowncharts,.lib-xlabel-drilldowncharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:16px;letter-spacing:-.1px;color:#000!important;opacity:1}.lib-donut-justified-label-icon-drilldown{display:inline-block;width:14px;height:14px;margin-right:10px;border-radius:50%}.marginright-2{margin-right:2%}.margintop-5{margin-top:5%}.width-100{width:100%}.float-right{float:right}.marginBottom-10{margin-bottom:10px}.header-alt{align-items:center;margin-bottom:10px}input::placeholder{font-size:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.padding-5{padding:5px}.hidden{visibility:hidden}.font-weight-bold{font-weight:900}.textalign-center{text-align:center}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.font-weight-600{font-weight:600}.marginRight-15{margin-right:15px}.marginRight-20{margin-right:20px}.switch{position:relative;display:inline-block;width:46px;height:24px;margin-left:5px;margin-right:5px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#2d5ca0;-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:\"\";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider.round{border-radius:18px}.slider.round:before{border-radius:50%}.slider1{position:absolute;cursor:pointer;inset:0;background-color:#015ba2cf;-webkit-transition:.4s;transition:.4s}.slider1:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider1.round1{border-radius:18px}.slider1.round1:before{border-radius:50%}.lib-display-flex{display:flex}.lib-align-items-center{align-items:center}.lib-flex-direction-column{flex-direction:column}.lib-justify-content-space-between{justify-content:space-between}.lib-justify-content-space-around{justify-content:space-around}.lib-justify-content-center{justify-content:center}.lib-justify-content-start{justify-content:start}.lib-justify-content-end{justify-content:end}.lib-ml-20{margin-left:20px}.lib-position-absolute{position:absolute}.lib-z-index-9{z-index:9}.marginright-3{margin-right:3px}@media (min-height: 900px){.lib-chart-wrapper{border-radius:8px}.header-font-size-1{font-size:18px!important}.font-size-1{font-size:14px!important}.font-size-2{font-size:16px!important}.font-size-3{font-size:14px!important}.font-size-4{font-size:22px!important}.font-size-5{font-size:24px!important}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ResizedDirective, selector: "[resized]", outputs: ["resized"] }, { kind: "component", type: ChartHeaderV1Component, selector: "lib-chart-header-v1", inputs: ["isAlertEnabled", "title", "menuOptions", "isEditEnabled", "isria", "hasDrillDown", "selectedKpiTooltop"], outputs: ["menuOptionClickEvent"] }, { kind: "component", type: ChartHeaderV2Component, selector: "lib-chart-header-v2", inputs: ["chartData", "chartConfiguration"], outputs: ["clickEvent", "zoomInZoomOutClick"] }, { kind: "component", type: ChartHeaderV3Component, selector: "lib-chart-header-v3", inputs: ["chartData", "chartConfiguration"], outputs: ["compareByFilterSelection", "zoomInZoomOutClick"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4309
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.12", type: GroupChartComponent, selector: "lib-group-chart", inputs: { chartData: "chartData", customChartConfiguration: "customChartConfiguration" }, outputs: { clickEvent: "clickEvent", headerMenuclickEvent: "headerMenuclickEvent" }, viewQueries: [{ propertyName: "containerElt", first: true, predicate: ["groupchartcontainer"], descendants: true, static: true }, { propertyName: "groupcontainerElt", first: true, predicate: ["groupcontainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\r\n #groupcontainer\r\n class=\"lib-chart-wrapper\"\r\n [ngClass]=\"{ 'lib-no-background': isTransparentBackground }\"\r\n style=\"background-color: var(--card-bg);\"\r\n (resized)=\"onResized($event)\"\r\n>\r\n\r\n<div class=\"header-alt\" *ngIf=\"!isHeaderVisible\">\r\n <lib-chart-header-v2\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (clickEvent)=\"handleClick($event)\"\r\n ></lib-chart-header-v2>\r\n <lib-chart-header-v3\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (compareByFilterSelection)=\"handleCompareByFilterSelection($event)\"\r\n (zoomInZoomOutClick)=\"handleZoominZoomoutClick($event)\"\r\n ></lib-chart-header-v3>\r\n</div>\r\n\r\n <lib-chart-header-v1\r\n [title]=\"chartData.metaData.title\"\r\n [hasDrillDown]=\"chartData.metaData.hasDrillDown\"\r\n [isEditEnabled]=\"chartData.metaData.isEditEnabled\"\r\n [menuOptions]=\"chartConfiguration.headerMenuOptions\"\r\n [isria]=\"customChartConfiguration.isRia\"\r\n [selectedKpiTooltop]=\"chartConfiguration.selectedKpiTooltop\"\r\n (menuOptionClickEvent)=\"handleHeaderMenuClick($event)\"\r\n [isAlertEnabled]=\"isAlertEnabled\"\r\n *ngIf=\"isHeaderVisible\"\r\n></lib-chart-header-v1>\r\n\r\n <div\r\n [style.height]=\"chartConfiguration.svgHeight\"\r\n id=\"groupchartcontainer\"\r\n #groupchartcontainer\r\n class=\"lib-chart-svg\"\r\n ></div>\r\n</div>\r\n", styles: [".lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1;font-size:1.2em}.lib-axis-group-label{font-size:.85em;font-weight:600;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.dots{font-size:10px}.inline__display{display:flex;justify-content:space-around;padding-top:2%}.verticalbar__text{font-style:normal;font-variant:normal;font-weight:400;font-size:13px;line-height:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;opacity:1}.lib-line-label-item{display:inline-block!important;font-size:.85em;margin-right:10px;font-weight:600}.lib-line-label-wrapper-vertical{display:flex;justify-content:center}.target-display{font-size:10px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.title{background-color:#d9d9d9;height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:3px;line-height:1}.title:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #d3d3d3;border-left:solid 10px transparent;border-right:solid 10px transparent}.title-top-text{color:#000;font-size:14px;font-weight:600}.title-bar-name{color:#000;font-size:12px;font-weight:700;text-transform:capitalize}.title-bottom-text{color:#4f4f4f;font-size:12px}.zoomIcons-holder{display:flex;align-items:center;margin-right:15px}.zoomIcons{border:.5px solid #b6b6b6;cursor:pointer;display:flex;justify-content:center;align-items:center;width:30px;height:30px;color:var(--color)!important}.zoom-active{background-color:#2d5ca0;opacity:1}.zoom-inactive{background-color:#d9d9d9;opacity:.5}.bottom__text{position:absolute!important;bottom:0!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important}.box__heightwidth{opacity:1;height:10px;width:10px;border:none!important;border-radius:50%}.label__text{margin-right:10px;display:flex;justify-content:center;align-items:center;font-style:normal;font-variant:normal;font-weight:400;font-size:10px;line-height:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;letter-spacing:.2px;color:#707070!important}.lib-verticalstack-labels-ontop-weklycharts{font-style:normal;font-variant:normal;font-weight:700;font-size:10px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.lib-verticalstack-title-ontop{font-style:normal;font-variant:normal;font-size:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.marginLeft-20{margin-left:20px}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}\n", ".lib-chart-wrapper{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;background:#fff 0% 0% no-repeat padding-box;position:relative}.lib-chart-wrapper-wo-shadow{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background){background-color:#2e3640}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background) .chart-title{color:#fff}.lib-chart-svg{width:100%}.lib-chart-header{text-align:center;background-color:#052340;color:#fff;width:100%;height:17%;word-spacing:.5px;line-height:1.8;font-weight:700;padding-top:2%;letter-spacing:0;font-size:1.2em}.lib-donut-chart-footer{width:100%;text-align:right}.lib-donut-label-text{font-size:.9em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1}.lib-donut-label-icon{display:inline-block;width:10px;height:10px;margin-right:20px;border-radius:3px}.lib-donut-label-item{font-weight:400;font-size:.85em;color:#2f2f2f}.lib-donut-justified-label-wrapper{width:100%;display:inline-block;text-align:center;list-style-type:none}.lib-donut-justified-label-item{font-weight:400;font-size:.85em;color:#2f2f2f;display:inline-block;text-align:left;padding:0 10px}.lib-donut-justified-label-icon{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px}.lib-no-background{background:none!important}.lib-display-hidden{display:none}.lib-ylabel-weeklyCharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.07px;text-transform:capitalize;color:#000}.lib-data-labels-weeklycharts{font-style:normal;font-variant:normal;font-weight:400;font-size:12px;line-height:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.06px;color:#000}.lib-data-labels-angled-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:9.5px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:.4px;text-anchor:start}.lib-xaxis-labels-texts-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:11px;letter-spacing:-.05px;fill:#000}.lib-xaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:-1px;color:#000;opacity:1;text-transform:capitalize}.lib-white-space-nowrap{white-space:nowrap}.lib-xaxis-labels-texts-drilldown-alt{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:10px;letter-spacing:0px;color:#000;opacity:1;text-transform:capitalize}.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:0px;color:#000!important;opacity:1}.lib-ylabel-drilldowncharts,.lib-xlabel-drilldowncharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:16px;letter-spacing:-.1px;color:#000!important;opacity:1}.lib-donut-justified-label-icon-drilldown{display:inline-block;width:14px;height:14px;margin-right:10px;border-radius:50%}.marginright-2{margin-right:2%}.margintop-5{margin-top:5%}.width-100{width:100%}.float-right{float:right}.marginBottom-10{margin-bottom:10px}.header-alt{align-items:center;margin-bottom:10px}input::placeholder{font-size:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.padding-5{padding:5px}.hidden{visibility:hidden}.font-weight-bold{font-weight:900}.textalign-center{text-align:center}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.font-weight-600{font-weight:600}.marginRight-15{margin-right:15px}.marginRight-20{margin-right:20px}.switch{position:relative;display:inline-block;width:46px;height:24px;margin-left:5px;margin-right:5px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#2d5ca0;-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:\"\";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider.round{border-radius:18px}.slider.round:before{border-radius:50%}.slider1{position:absolute;cursor:pointer;inset:0;background-color:#015ba2cf;-webkit-transition:.4s;transition:.4s}.slider1:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider1.round1{border-radius:18px}.slider1.round1:before{border-radius:50%}.lib-display-flex{display:flex}.lib-align-items-center{align-items:center}.lib-flex-direction-column{flex-direction:column}.lib-justify-content-space-between{justify-content:space-between}.lib-justify-content-space-around{justify-content:space-around}.lib-justify-content-center{justify-content:center}.lib-justify-content-start{justify-content:start}.lib-justify-content-end{justify-content:end}.lib-ml-20{margin-left:20px}.lib-position-absolute{position:absolute}.lib-z-index-9{z-index:9}.marginright-3{margin-right:3px}@media (min-height: 900px){.lib-chart-wrapper{border-radius:8px}.header-font-size-1{font-size:18px!important}.font-size-1{font-size:14px!important}.font-size-2{font-size:16px!important}.font-size-3{font-size:14px!important}.font-size-4{font-size:22px!important}.font-size-5{font-size:24px!important}}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.ResizedDirective, selector: "[resized]", outputs: ["resized"] }, { kind: "component", type: ChartHeaderV1Component, selector: "lib-chart-header-v1", inputs: ["isAlertEnabled", "title", "menuOptions", "isEditEnabled", "isria", "hasDrillDown", "selectedKpiTooltop"], outputs: ["menuOptionClickEvent"] }, { kind: "component", type: ChartHeaderV2Component, selector: "lib-chart-header-v2", inputs: ["chartData", "chartConfiguration"], outputs: ["clickEvent", "zoomInZoomOutClick"] }, { kind: "component", type: ChartHeaderV3Component, selector: "lib-chart-header-v3", inputs: ["chartData", "chartConfiguration"], outputs: ["compareByFilterSelection", "zoomInZoomOutClick"] }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
4230
4310
|
}
|
|
4231
4311
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupChartComponent, decorators: [{
|
|
4232
4312
|
type: Component,
|
|
4233
|
-
args: [{ selector: 'lib-group-chart', encapsulation: ViewEncapsulation.None, template: "<div\r\n #groupcontainer\r\n class=\"lib-chart-wrapper\"\r\n [ngClass]=\"{ 'lib-no-background': isTransparentBackground }\"\r\n style=\"background-color: var(--card-bg);\"\r\n (resized)=\"onResized($event)\"\r\n>\r\n\r\n<div class=\"header-alt\" *ngIf=\"!isHeaderVisible\">\r\n <lib-chart-header-v2\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (clickEvent)=\"handleClick($event)\"\r\n ></lib-chart-header-v2>\r\n <lib-chart-header-v3\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (compareByFilterSelection)=\"handleCompareByFilterSelection($event)\"\r\n (zoomInZoomOutClick)=\"handleZoominZoomoutClick($event)\"\r\n ></lib-chart-header-v3>\r\n</div>\r\n\r\n <lib-chart-header-v1\r\n [title]=\"chartData.metaData.title\"\r\n [hasDrillDown]=\"chartData.metaData.hasDrillDown\"\r\n [isEditEnabled]=\"chartData.metaData.isEditEnabled\"\r\n [menuOptions]=\"chartConfiguration.headerMenuOptions\"\r\n [isria]=\"customChartConfiguration.isRia\"\r\n [selectedKpiTooltop]=\"chartConfiguration.selectedKpiTooltop\"\r\n (menuOptionClickEvent)=\"handleHeaderMenuClick($event)\"\r\n [isAlertEnabled]=\"isAlertEnabled\"\r\n *ngIf=\"isHeaderVisible\"\r\n></lib-chart-header-v1>\r\n\r\n <div\r\n [style.height]=\"chartConfiguration.svgHeight\"\r\n id=\"groupchartcontainer\"\r\n #groupchartcontainer\r\n class=\"lib-chart-svg\"\r\n ></div>\r\n</div>\r\n", styles: [".lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1;font-size:1.2em}.lib-axis-group-label{font-size:.85em;font-weight:600;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.dots{font-size:10px}.inline__display{display:flex;justify-content:space-around;padding-top:2%}.verticalbar__text{font-style:normal;font-variant:normal;font-weight:400;font-size:13px;line-height:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;opacity:1}.lib-line-label-item{display:inline-block!important;font-size:.85em;margin-right:10px;font-weight:600}.lib-line-label-wrapper-vertical{display:flex;justify-content:center}.target-display{font-size:12px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.title{background-color:#d9d9d9;height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:3px;line-height:1}.title:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #d3d3d3;border-left:solid 10px transparent;border-right:solid 10px transparent}.title-top-text{color:#000;font-size:14px;font-weight:600}.title-bar-name{color:#000;font-size:12px;font-weight:700;text-transform:capitalize}.title-bottom-text{color:#4f4f4f;font-size:12px}.zoomIcons-holder{display:flex;align-items:center;margin-right:15px}.zoomIcons{border:.5px solid #b6b6b6;cursor:pointer;display:flex;justify-content:center;align-items:center;width:30px;height:30px;color:var(--color)!important}.zoom-active{background-color:#2d5ca0;opacity:1}.zoom-inactive{background-color:#d9d9d9;opacity:.5}@media screen and (min-width: 1024px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1024px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1024px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:10px!important}.dots{font-size:10px!important}}@media screen and (min-width: 1366px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1366px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1366px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:12px!important}.dots{font-size:12px!important}}@media screen and (min-width: 1920px) and (min-height: 400px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 1920px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 1920px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:14px!important}.dots{font-size:14px!important}}@media screen and (min-width: 2560px) and (min-height: 500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}.dots{font-size:16px!important}}@media screen and (min-width: 2560px) and (min-height: 1000px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}.dots{font-size:16px!important}}@media screen and (min-width: 2560px) and (min-height: 1500px){.lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-size:16px!important}}.bottom__text{position:absolute!important;bottom:0!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important}.box__heightwidth{opacity:1;height:10px;width:10px;border:none!important;border-radius:50%}.label__text{margin-right:10px;display:flex;justify-content:center;align-items:center;font-style:normal;font-variant:normal;font-weight:400;font-size:10px;line-height:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;letter-spacing:.2px;color:#707070!important}.lib-verticalstack-labels-ontop-weklycharts{font-style:normal;font-variant:normal;font-weight:700;font-size:10px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.lib-verticalstack-title-ontop{font-style:normal;font-variant:normal;font-size:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.marginLeft-20{margin-left:20px}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}\n", ".lib-chart-wrapper{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;background:#fff 0% 0% no-repeat padding-box;position:relative}.lib-chart-wrapper-wo-shadow{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background){background-color:#2e3640}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background) .chart-title{color:#fff}.lib-chart-svg{width:100%}.lib-chart-header{text-align:center;background-color:#052340;color:#fff;width:100%;height:17%;word-spacing:.5px;line-height:1.8;font-weight:700;padding-top:2%;letter-spacing:0;font-size:1.2em}.lib-donut-chart-footer{width:100%;text-align:right}.lib-donut-label-text{font-size:.9em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1}.lib-donut-label-icon{display:inline-block;width:10px;height:10px;margin-right:20px;border-radius:3px}.lib-donut-label-item{font-weight:400;font-size:.85em;color:#2f2f2f}.lib-donut-justified-label-wrapper{width:100%;display:inline-block;text-align:center;list-style-type:none}.lib-donut-justified-label-item{font-weight:400;font-size:.85em;color:#2f2f2f;display:inline-block;text-align:left;padding:0 10px}.lib-donut-justified-label-icon{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px}.lib-no-background{background:none!important}.lib-display-hidden{display:none}.lib-ylabel-weeklyCharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.07px;text-transform:capitalize;color:#000}.lib-data-labels-weeklycharts{font-style:normal;font-variant:normal;font-weight:400;font-size:12px;line-height:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.06px;color:#000}.lib-data-labels-angled-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:9.5px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:.4px;text-anchor:start}.lib-xaxis-labels-texts-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:11px;letter-spacing:-.05px;fill:#000}.lib-xaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:-1px;color:#000;opacity:1;text-transform:capitalize}.lib-white-space-nowrap{white-space:nowrap}.lib-xaxis-labels-texts-drilldown-alt{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:10px;letter-spacing:0px;color:#000;opacity:1;text-transform:capitalize}.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:0px;color:#000!important;opacity:1}.lib-ylabel-drilldowncharts,.lib-xlabel-drilldowncharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:16px;letter-spacing:-.1px;color:#000!important;opacity:1}.lib-donut-justified-label-icon-drilldown{display:inline-block;width:14px;height:14px;margin-right:10px;border-radius:50%}.marginright-2{margin-right:2%}.margintop-5{margin-top:5%}.width-100{width:100%}.float-right{float:right}.marginBottom-10{margin-bottom:10px}.header-alt{align-items:center;margin-bottom:10px}input::placeholder{font-size:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.padding-5{padding:5px}.hidden{visibility:hidden}.font-weight-bold{font-weight:900}.textalign-center{text-align:center}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.font-weight-600{font-weight:600}.marginRight-15{margin-right:15px}.marginRight-20{margin-right:20px}.switch{position:relative;display:inline-block;width:46px;height:24px;margin-left:5px;margin-right:5px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#2d5ca0;-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:\"\";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider.round{border-radius:18px}.slider.round:before{border-radius:50%}.slider1{position:absolute;cursor:pointer;inset:0;background-color:#015ba2cf;-webkit-transition:.4s;transition:.4s}.slider1:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider1.round1{border-radius:18px}.slider1.round1:before{border-radius:50%}.lib-display-flex{display:flex}.lib-align-items-center{align-items:center}.lib-flex-direction-column{flex-direction:column}.lib-justify-content-space-between{justify-content:space-between}.lib-justify-content-space-around{justify-content:space-around}.lib-justify-content-center{justify-content:center}.lib-justify-content-start{justify-content:start}.lib-justify-content-end{justify-content:end}.lib-ml-20{margin-left:20px}.lib-position-absolute{position:absolute}.lib-z-index-9{z-index:9}.marginright-3{margin-right:3px}@media (min-height: 900px){.lib-chart-wrapper{border-radius:8px}.header-font-size-1{font-size:18px!important}.font-size-1{font-size:14px!important}.font-size-2{font-size:16px!important}.font-size-3{font-size:14px!important}.font-size-4{font-size:22px!important}.font-size-5{font-size:24px!important}}\n"] }]
|
|
4313
|
+
args: [{ selector: 'lib-group-chart', encapsulation: ViewEncapsulation.None, template: "<div\r\n #groupcontainer\r\n class=\"lib-chart-wrapper\"\r\n [ngClass]=\"{ 'lib-no-background': isTransparentBackground }\"\r\n style=\"background-color: var(--card-bg);\"\r\n (resized)=\"onResized($event)\"\r\n>\r\n\r\n<div class=\"header-alt\" *ngIf=\"!isHeaderVisible\">\r\n <lib-chart-header-v2\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (clickEvent)=\"handleClick($event)\"\r\n ></lib-chart-header-v2>\r\n <lib-chart-header-v3\r\n [chartData]=\"chartData\"\r\n [chartConfiguration]=\"chartConfiguration\"\r\n (compareByFilterSelection)=\"handleCompareByFilterSelection($event)\"\r\n (zoomInZoomOutClick)=\"handleZoominZoomoutClick($event)\"\r\n ></lib-chart-header-v3>\r\n</div>\r\n\r\n <lib-chart-header-v1\r\n [title]=\"chartData.metaData.title\"\r\n [hasDrillDown]=\"chartData.metaData.hasDrillDown\"\r\n [isEditEnabled]=\"chartData.metaData.isEditEnabled\"\r\n [menuOptions]=\"chartConfiguration.headerMenuOptions\"\r\n [isria]=\"customChartConfiguration.isRia\"\r\n [selectedKpiTooltop]=\"chartConfiguration.selectedKpiTooltop\"\r\n (menuOptionClickEvent)=\"handleHeaderMenuClick($event)\"\r\n [isAlertEnabled]=\"isAlertEnabled\"\r\n *ngIf=\"isHeaderVisible\"\r\n></lib-chart-header-v1>\r\n\r\n <div\r\n [style.height]=\"chartConfiguration.svgHeight\"\r\n id=\"groupchartcontainer\"\r\n #groupchartcontainer\r\n class=\"lib-chart-svg\"\r\n ></div>\r\n</div>\r\n", styles: [".lib-stacked-y-axis-text text,.lib-stacked-x-axis-text text{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1;font-size:1.2em}.lib-axis-group-label{font-size:.85em;font-weight:600;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.dots{font-size:10px}.inline__display{display:flex;justify-content:space-around;padding-top:2%}.verticalbar__text{font-style:normal;font-variant:normal;font-weight:400;font-size:13px;line-height:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;opacity:1}.lib-line-label-item{display:inline-block!important;font-size:.85em;margin-right:10px;font-weight:600}.lib-line-label-wrapper-vertical{display:flex;justify-content:center}.target-display{font-size:10px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.title{background-color:#d9d9d9;height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:3px;line-height:1}.title:after{content:\"\";position:absolute;bottom:0;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #d3d3d3;border-left:solid 10px transparent;border-right:solid 10px transparent}.title-top-text{color:#000;font-size:14px;font-weight:600}.title-bar-name{color:#000;font-size:12px;font-weight:700;text-transform:capitalize}.title-bottom-text{color:#4f4f4f;font-size:12px}.zoomIcons-holder{display:flex;align-items:center;margin-right:15px}.zoomIcons{border:.5px solid #b6b6b6;cursor:pointer;display:flex;justify-content:center;align-items:center;width:30px;height:30px;color:var(--color)!important}.zoom-active{background-color:#2d5ca0;opacity:1}.zoom-inactive{background-color:#d9d9d9;opacity:.5}.bottom__text{position:absolute!important;bottom:0!important;display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important}.box__heightwidth{opacity:1;height:10px;width:10px;border:none!important;border-radius:50%}.label__text{margin-right:10px;display:flex;justify-content:center;align-items:center;font-style:normal;font-variant:normal;font-weight:400;font-size:10px;line-height:13px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Open Sans,Helvetica Neue,sans-serif;letter-spacing:.2px;color:#707070!important}.lib-verticalstack-labels-ontop-weklycharts{font-style:normal;font-variant:normal;font-weight:700;font-size:10px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.lib-verticalstack-title-ontop{font-style:normal;font-variant:normal;font-size:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.05px;text-anchor:middle;fill:#000}.marginLeft-20{margin-left:20px}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}\n", ".lib-chart-wrapper{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;background:#fff 0% 0% no-repeat padding-box;position:relative}.lib-chart-wrapper-wo-shadow{width:100%;height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background){background-color:#2e3640}.lib-chart-wrapper:hover .chart-header-v1:not(.header-no-background) .chart-title{color:#fff}.lib-chart-svg{width:100%}.lib-chart-header{text-align:center;background-color:#052340;color:#fff;width:100%;height:17%;word-spacing:.5px;line-height:1.8;font-weight:700;padding-top:2%;letter-spacing:0;font-size:1.2em}.lib-donut-chart-footer{width:100%;text-align:right}.lib-donut-label-text{font-size:.9em;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-weight:400;letter-spacing:0px;color:#000;opacity:1}.lib-donut-label-icon{display:inline-block;width:10px;height:10px;margin-right:20px;border-radius:3px}.lib-donut-label-item{font-weight:400;font-size:.85em;color:#2f2f2f}.lib-donut-justified-label-wrapper{width:100%;display:inline-block;text-align:center;list-style-type:none}.lib-donut-justified-label-item{font-weight:400;font-size:.85em;color:#2f2f2f;display:inline-block;text-align:left;padding:0 10px}.lib-donut-justified-label-icon{display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:3px}.lib-no-background{background:none!important}.lib-display-hidden{display:none}.lib-ylabel-weeklyCharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:12px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.07px;text-transform:capitalize;color:#000}.lib-data-labels-weeklycharts{font-style:normal;font-variant:normal;font-weight:400;font-size:12px;line-height:14px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:-.06px;color:#000}.lib-data-labels-angled-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:9.5px;line-height:11px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:.4px;text-anchor:start}.lib-xaxis-labels-texts-weeklycharts{font-style:normal;font-variant:normal;font-weight:800;font-size:10px;line-height:11px;letter-spacing:-.05px;fill:#000}.lib-xaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:-1px;color:#000;opacity:1;text-transform:capitalize}.lib-white-space-nowrap{white-space:nowrap}.lib-xaxis-labels-texts-drilldown-alt{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:10px;letter-spacing:0px;color:#000;opacity:1;text-transform:capitalize}.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:14px;letter-spacing:0px;color:#000!important;opacity:1}.lib-ylabel-drilldowncharts,.lib-xlabel-drilldowncharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;font-size:16px;letter-spacing:-.1px;color:#000!important;opacity:1}.lib-donut-justified-label-icon-drilldown{display:inline-block;width:14px;height:14px;margin-right:10px;border-radius:50%}.marginright-2{margin-right:2%}.margintop-5{margin-top:5%}.width-100{width:100%}.float-right{float:right}.marginBottom-10{margin-bottom:10px}.header-alt{align-items:center;margin-bottom:10px}input::placeholder{font-size:20px;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;letter-spacing:0px;color:#000;opacity:1}.padding-5{padding:5px}.hidden{visibility:hidden}.font-weight-bold{font-weight:900}.textalign-center{text-align:center}.cursor-pointer{cursor:pointer}.cursor-default{cursor:default}.font-weight-600{font-weight:600}.marginRight-15{margin-right:15px}.marginRight-20{margin-right:20px}.switch{position:relative;display:inline-block;width:46px;height:24px;margin-left:5px;margin-right:5px}.switch input{opacity:0;width:0;height:0}.slider{position:absolute;cursor:pointer;inset:0;background-color:#2d5ca0;-webkit-transition:.4s;transition:.4s}.slider:before{position:absolute;content:\"\";height:18px;width:18px;right:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider.round{border-radius:18px}.slider.round:before{border-radius:50%}.slider1{position:absolute;cursor:pointer;inset:0;background-color:#015ba2cf;-webkit-transition:.4s;transition:.4s}.slider1:before{position:absolute;content:\"\";height:18px;width:18px;left:3px;bottom:3px;background-color:#fff;-webkit-transition:.4s;transition:.4s}.slider1.round1{border-radius:18px}.slider1.round1:before{border-radius:50%}.lib-display-flex{display:flex}.lib-align-items-center{align-items:center}.lib-flex-direction-column{flex-direction:column}.lib-justify-content-space-between{justify-content:space-between}.lib-justify-content-space-around{justify-content:space-around}.lib-justify-content-center{justify-content:center}.lib-justify-content-start{justify-content:start}.lib-justify-content-end{justify-content:end}.lib-ml-20{margin-left:20px}.lib-position-absolute{position:absolute}.lib-z-index-9{z-index:9}.marginright-3{margin-right:3px}@media (min-height: 900px){.lib-chart-wrapper{border-radius:8px}.header-font-size-1{font-size:18px!important}.font-size-1{font-size:14px!important}.font-size-2{font-size:16px!important}.font-size-3{font-size:14px!important}.font-size-4{font-size:22px!important}.font-size-5{font-size:24px!important}}\n"] }]
|
|
4234
4314
|
}], ctorParameters: () => [], propDecorators: { containerElt: [{
|
|
4235
4315
|
type: ViewChild,
|
|
4236
4316
|
args: ['groupchartcontainer', { static: true }]
|
|
@@ -6976,7 +7056,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6976
7056
|
.append('div')
|
|
6977
7057
|
.style('width', '100%')
|
|
6978
7058
|
.style('text-align', 'center')
|
|
6979
|
-
.style('font-size', '
|
|
7059
|
+
.style('font-size', '14px')
|
|
6980
7060
|
.style('font-weight', '600')
|
|
6981
7061
|
.style('font-family', 'system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto')
|
|
6982
7062
|
.style('color', 'var(--chart-text-color)')
|
|
@@ -8172,7 +8252,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8172
8252
|
.on('click', (d) => this.handleBarClick(d, metaData, self))
|
|
8173
8253
|
.attr('x', (d) => this.calculateBarX(d, data, x, xSubgroup, self, tempScale))
|
|
8174
8254
|
.attr('y', (d) => this.calculateBarY(d, y, height, self))
|
|
8175
|
-
.attr('width', (d) =>
|
|
8255
|
+
.attr('width', (d) => {
|
|
8256
|
+
let width = this.calculateBarWidth(d, data, subgroups, x, xSubgroup, self, tempScale);
|
|
8257
|
+
if (isria && self.chartData.data.length >= 8) {
|
|
8258
|
+
width = Math.max(0, width - 30); // Prevent negative width
|
|
8259
|
+
}
|
|
8260
|
+
return width;
|
|
8261
|
+
})
|
|
8176
8262
|
.attr('height', (d) => this.calculateBarHeight(d, y, height, self))
|
|
8177
8263
|
.style('cursor', () => (metaData.hasDrillDown && !isria) ? 'pointer' : 'default')
|
|
8178
8264
|
.attr('fill', (d) => this.getBarColor(d, metaData, self));
|