axidio-styleguide-library1-v2 0.4.6 → 0.4.8
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 +173 -142
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +5 -6
- package/fesm2022/axidio-styleguide-library1-v2.mjs +176 -146
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/lib/group-chart/group-chart.component.d.ts +4 -2
- package/package.json +1 -1
|
@@ -3387,7 +3387,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3387
3387
|
this.chartConfiguration = {};
|
|
3388
3388
|
this.objectKeys = Object.keys;
|
|
3389
3389
|
this.defaultConfiguration = {
|
|
3390
|
-
margin: { top: 20, right: 20, bottom:
|
|
3390
|
+
margin: { top: 20, right: 20, bottom: 60, left: 60 }, // Increased bottom/left margins
|
|
3391
3391
|
labelFormatter: ChartHelper.defaultFormatter,
|
|
3392
3392
|
svgHeight: 70,
|
|
3393
3393
|
numberOfYTicks: 5,
|
|
@@ -3398,17 +3398,20 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3398
3398
|
showLineChartAxis: true,
|
|
3399
3399
|
showValues: true,
|
|
3400
3400
|
headerMenuOptions: HeaderConfigHelper.headerConfig.headerMenuOptions,
|
|
3401
|
-
|
|
3401
|
+
xAxisGrid: true, // Enable x-axis grid by default
|
|
3402
|
+
yAxisGrid: true, // Enable y-axis grid by default
|
|
3402
3403
|
legendVisible: true,
|
|
3403
3404
|
isYaxisLabelHidden: false,
|
|
3404
3405
|
backgroundColor: '#FFFFFF',
|
|
3405
3406
|
hideLegendOnTop: true,
|
|
3406
3407
|
isXaxisColor: '#999999',
|
|
3407
3408
|
labelOverlapMinorFix: true,
|
|
3408
|
-
noHoverEffect:
|
|
3409
|
-
noHoverDisplayData:
|
|
3409
|
+
noHoverEffect: false,
|
|
3410
|
+
noHoverDisplayData: false,
|
|
3410
3411
|
showXaxisTop: true,
|
|
3411
3412
|
howmanyBarDetailsToDisplay: 0,
|
|
3413
|
+
minBarWidth: 40, // Minimum bar width to prevent overlap
|
|
3414
|
+
enableAutoScroll: true, // Enable auto-scrolling for many bars
|
|
3412
3415
|
};
|
|
3413
3416
|
this.uniqueId = this.getUniqueId();
|
|
3414
3417
|
this.isZoomedOut = false;
|
|
@@ -3444,6 +3447,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3444
3447
|
const scales = this.createScales(chartContext, dimensions);
|
|
3445
3448
|
const svgElements = this.createSVGStructure(dimensions);
|
|
3446
3449
|
this.renderAxes(svgElements, scales, chartContext, dimensions);
|
|
3450
|
+
this.renderGridLines(svgElements, scales, dimensions); // NEW: Separate grid rendering
|
|
3447
3451
|
this.renderBars(svgElements.svg, chartContext, scales, dimensions);
|
|
3448
3452
|
this.renderLabels(svgElements, scales, chartContext, dimensions);
|
|
3449
3453
|
this.renderTargetLine(svgElements, scales, chartContext, dimensions);
|
|
@@ -3483,27 +3487,29 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3483
3487
|
const chartContainer = d3.select(this.containerElt.nativeElement);
|
|
3484
3488
|
const verticalstackedcontainer = d3.select(this.groupcontainerElt.nativeElement);
|
|
3485
3489
|
const margin = this.chartConfiguration.margin;
|
|
3486
|
-
let width = this.calculateWidth(chartContainer, margin);
|
|
3490
|
+
let width = this.calculateWidth(chartContainer, margin, chartContext);
|
|
3487
3491
|
let height = this.calculateHeight(verticalstackedcontainer, margin);
|
|
3488
3492
|
return { width, height, margin, chartContainer, verticalstackedcontainer };
|
|
3489
3493
|
}
|
|
3490
|
-
calculateWidth(chartContainer, margin) {
|
|
3491
|
-
const
|
|
3494
|
+
calculateWidth(chartContainer, margin, chartContext) {
|
|
3495
|
+
const containerWidth = parseInt(chartContainer.style('width')) - margin.left - margin.right;
|
|
3492
3496
|
const dataLength = this.chartData.data.length;
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3497
|
+
const keyListLength = chartContext.keyList.length;
|
|
3498
|
+
const minBarWidth = this.chartConfiguration.minBarWidth || 40;
|
|
3499
|
+
// Calculate minimum required width based on bars
|
|
3500
|
+
const minRequiredWidth = dataLength * keyListLength * minBarWidth;
|
|
3501
|
+
// Use the larger of container width or minimum required width
|
|
3502
|
+
let width = Math.max(containerWidth, minRequiredWidth);
|
|
3503
|
+
// Additional adjustments for specific scenarios
|
|
3504
|
+
if (this.isZoomedOut) {
|
|
3505
|
+
const multiplier = this.chartData.dropdownData1 ? 60 : 50;
|
|
3496
3506
|
width = Math.max(width, dataLength * multiplier);
|
|
3497
3507
|
}
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
width = dataLength * 250;
|
|
3504
|
-
}
|
|
3505
|
-
else {
|
|
3506
|
-
width = dataLength * 160;
|
|
3508
|
+
else {
|
|
3509
|
+
// When not zoomed out, ensure enough space for labels
|
|
3510
|
+
if (dataLength > 8) {
|
|
3511
|
+
const multiplier = this.chartData.dropdownData2 ? 250 : 160;
|
|
3512
|
+
width = Math.max(width, dataLength * multiplier);
|
|
3507
3513
|
}
|
|
3508
3514
|
}
|
|
3509
3515
|
return width;
|
|
@@ -3530,7 +3536,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3530
3536
|
createScales(chartContext, dimensions) {
|
|
3531
3537
|
const { data, metaData, lineData, keyList } = chartContext;
|
|
3532
3538
|
const { width, height, margin } = dimensions;
|
|
3533
|
-
const leftAndRightSpaces =
|
|
3539
|
+
const leftAndRightSpaces = 20; // Reduced spacing
|
|
3534
3540
|
const rightSvgWidth = 60;
|
|
3535
3541
|
const groups = d3.map(data, (d) => d.name).keys();
|
|
3536
3542
|
let x;
|
|
@@ -3539,18 +3545,24 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3539
3545
|
.scaleBand()
|
|
3540
3546
|
.rangeRound([width, 0])
|
|
3541
3547
|
.align(0.5)
|
|
3542
|
-
.
|
|
3548
|
+
.paddingInner(0.2) // Inner padding between bars
|
|
3549
|
+
.paddingOuter(0.1) // Outer padding
|
|
3543
3550
|
.domain(data.map((d) => d.name.toLowerCase()));
|
|
3544
3551
|
}
|
|
3545
3552
|
else {
|
|
3546
3553
|
x = d3
|
|
3547
3554
|
.scaleBand()
|
|
3548
3555
|
.domain(groups)
|
|
3549
|
-
.range([leftAndRightSpaces, width - rightSvgWidth
|
|
3550
|
-
.
|
|
3556
|
+
.range([leftAndRightSpaces, width - rightSvgWidth])
|
|
3557
|
+
.paddingInner(0.2) // Better spacing control
|
|
3558
|
+
.paddingOuter(0.1);
|
|
3551
3559
|
}
|
|
3552
3560
|
const xScaleFromOrigin = d3.scaleBand().domain(groups).range([0, width - rightSvgWidth]);
|
|
3553
|
-
const xSubgroup = d3
|
|
3561
|
+
const xSubgroup = d3
|
|
3562
|
+
.scaleBand()
|
|
3563
|
+
.domain(keyList)
|
|
3564
|
+
.range([0, x.bandwidth()])
|
|
3565
|
+
.padding(0.05); // Small padding between grouped bars
|
|
3554
3566
|
const maxValue = this.calculateMaxValue(data, keyList);
|
|
3555
3567
|
const y = d3.scaleLinear().domain([0, maxValue]).nice().rangeRound([height, 0]);
|
|
3556
3568
|
let lineYscale = null;
|
|
@@ -3596,48 +3608,96 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3596
3608
|
return d3.scaleLinear().domain([minLineValue, maxLineValue]).range([height, minLineValue]);
|
|
3597
3609
|
}
|
|
3598
3610
|
createSVGStructure(dimensions) {
|
|
3599
|
-
const { chartContainer, height, margin } = dimensions;
|
|
3611
|
+
const { chartContainer, height, margin, width } = dimensions;
|
|
3600
3612
|
const rightSvgWidth = 60;
|
|
3601
3613
|
const outerContainer = chartContainer
|
|
3602
3614
|
.append('div')
|
|
3603
3615
|
.attr('id', this.uniqueId)
|
|
3604
3616
|
.attr('class', 'outer-container')
|
|
3605
3617
|
.style('width', '100%')
|
|
3606
|
-
.style('height', height)
|
|
3607
|
-
.style('
|
|
3618
|
+
.style('height', height + margin.top + margin.bottom)
|
|
3619
|
+
.style('position', 'relative')
|
|
3608
3620
|
.style('padding-left', `${margin.left}px`)
|
|
3609
3621
|
.style('padding-right', `${rightSvgWidth}px`)
|
|
3610
3622
|
.style('margin-left', '15px');
|
|
3623
|
+
// Left Y-axis (fixed position)
|
|
3611
3624
|
const svgYAxisLeft = outerContainer
|
|
3612
3625
|
.append('svg')
|
|
3613
|
-
.attr('width',
|
|
3626
|
+
.attr('width', margin.left + 15)
|
|
3614
3627
|
.attr('height', height + margin.top + margin.bottom + 10)
|
|
3615
3628
|
.style('position', 'absolute')
|
|
3616
3629
|
.style('left', '0')
|
|
3617
|
-
.style('
|
|
3630
|
+
.style('top', '0')
|
|
3631
|
+
.style('z-index', '10')
|
|
3632
|
+
.style('background', this.chartConfiguration.backgroundColor || '#FFFFFF')
|
|
3618
3633
|
.append('g')
|
|
3619
3634
|
.attr('transform', `translate(${margin.left + 15},${margin.top})`);
|
|
3635
|
+
// Right Y-axis (fixed position)
|
|
3620
3636
|
const svgYAxisRight = outerContainer
|
|
3621
3637
|
.append('svg')
|
|
3622
3638
|
.attr('width', rightSvgWidth)
|
|
3623
3639
|
.attr('height', height + margin.top + margin.bottom + 10)
|
|
3624
3640
|
.style('position', 'absolute')
|
|
3625
3641
|
.style('right', '12px')
|
|
3626
|
-
.style('
|
|
3642
|
+
.style('top', '0')
|
|
3643
|
+
.style('z-index', '10')
|
|
3644
|
+
.style('background', this.chartConfiguration.backgroundColor || '#FFFFFF')
|
|
3627
3645
|
.append('g')
|
|
3628
3646
|
.attr('transform', `translate(0,${margin.top})`);
|
|
3647
|
+
// Scrollable inner container
|
|
3629
3648
|
const innerContainer = outerContainer
|
|
3630
3649
|
.append('div')
|
|
3631
3650
|
.attr('class', 'inner-container')
|
|
3632
3651
|
.style('width', '100%')
|
|
3633
|
-
.style('
|
|
3652
|
+
.style('height', height + margin.top + margin.bottom + 30)
|
|
3653
|
+
.style('overflow-x', width > parseInt(chartContainer.style('width')) ? 'auto' : 'hidden')
|
|
3654
|
+
.style('overflow-y', 'hidden');
|
|
3655
|
+
// Main chart SVG
|
|
3634
3656
|
const svg = innerContainer
|
|
3635
3657
|
.append('svg')
|
|
3636
|
-
.attr('width',
|
|
3658
|
+
.attr('width', width)
|
|
3637
3659
|
.attr('height', height + margin.top + margin.bottom + 30)
|
|
3638
3660
|
.append('g')
|
|
3639
3661
|
.attr('transform', `translate(0,${margin.top})`);
|
|
3640
|
-
return { outerContainer, svgYAxisLeft, svgYAxisRight, svg };
|
|
3662
|
+
return { outerContainer, svgYAxisLeft, svgYAxisRight, svg, innerContainer };
|
|
3663
|
+
}
|
|
3664
|
+
// NEW: Separate grid rendering method
|
|
3665
|
+
renderGridLines(svgElements, scales, dimensions) {
|
|
3666
|
+
const { svg } = svgElements;
|
|
3667
|
+
const { x, y } = scales;
|
|
3668
|
+
const { width, height } = dimensions;
|
|
3669
|
+
// Render Y-axis grid
|
|
3670
|
+
if (this.chartConfiguration.yAxisGrid) {
|
|
3671
|
+
svg
|
|
3672
|
+
.append('g')
|
|
3673
|
+
.attr('class', 'y-grid')
|
|
3674
|
+
.call(d3.axisLeft(y)
|
|
3675
|
+
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3676
|
+
.tickSize(-width)
|
|
3677
|
+
.tickFormat(''))
|
|
3678
|
+
.style('stroke', 'var(--chart-grid-color, #E0E0E0)')
|
|
3679
|
+
.style('stroke-width', '1')
|
|
3680
|
+
.style('opacity', '0.5')
|
|
3681
|
+
.call((g) => g.select('.domain').remove())
|
|
3682
|
+
.selectAll('line')
|
|
3683
|
+
.style('stroke-dasharray', '3 3');
|
|
3684
|
+
}
|
|
3685
|
+
// Render X-axis grid
|
|
3686
|
+
if (this.chartConfiguration.xAxisGrid || this.chartConfiguration.isXgridBetweenLabels) {
|
|
3687
|
+
svg
|
|
3688
|
+
.append('g')
|
|
3689
|
+
.attr('class', 'x-grid')
|
|
3690
|
+
.attr('transform', `translate(${x.bandwidth() / 2},0)`)
|
|
3691
|
+
.call(d3.axisBottom(x)
|
|
3692
|
+
.tickSize(height)
|
|
3693
|
+
.tickFormat(''))
|
|
3694
|
+
.style('stroke', 'var(--chart-grid-color, #E0E0E0)')
|
|
3695
|
+
.style('stroke-width', '1')
|
|
3696
|
+
.style('opacity', '0.3')
|
|
3697
|
+
.call((g) => g.select('.domain').remove())
|
|
3698
|
+
.selectAll('line')
|
|
3699
|
+
.style('stroke-dasharray', '3 3');
|
|
3700
|
+
}
|
|
3641
3701
|
}
|
|
3642
3702
|
renderAxes(svgElements, scales, chartContext, dimensions) {
|
|
3643
3703
|
const { svg, svgYAxisLeft, svgYAxisRight } = svgElements;
|
|
@@ -3646,12 +3706,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3646
3706
|
const { metaData, lineData, keyList } = chartContext;
|
|
3647
3707
|
this.renderXAxis(svg, x, xScaleFromOrigin, height, chartContext, keyList);
|
|
3648
3708
|
this.renderYAxis(svg, svgYAxisLeft, svgYAxisRight, y, dimensions);
|
|
3649
|
-
if (this.chartConfiguration.yAxisGrid) {
|
|
3650
|
-
this.renderYAxisGrid(svg, y, dimensions.width);
|
|
3651
|
-
}
|
|
3652
|
-
if (this.chartConfiguration.isXgridBetweenLabels) {
|
|
3653
|
-
this.renderXAxisGrid(svg, x, height);
|
|
3654
|
-
}
|
|
3655
3709
|
if (lineData && this.chartConfiguration.showLineChartAxis && lineYscale) {
|
|
3656
3710
|
this.renderLineYAxis(svgYAxisRight, lineYscale);
|
|
3657
3711
|
}
|
|
@@ -3663,13 +3717,23 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3663
3717
|
.append('g')
|
|
3664
3718
|
.attr('class', 'x1 axis1')
|
|
3665
3719
|
.attr('transform', `translate(0,${height})`)
|
|
3666
|
-
.call(d3.axisBottom(x))
|
|
3720
|
+
.call(d3.axisBottom(x).tickSize(0))
|
|
3667
3721
|
.call((g) => g.select('.domain').remove());
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3722
|
+
const textSelection = svg
|
|
3723
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
3724
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
3725
|
+
.style('fill', 'var(--chart-text-color, #000)')
|
|
3726
|
+
.style('font-size', '12px');
|
|
3727
|
+
// Rotate labels if they're too long or too many
|
|
3728
|
+
if (data.length > 10 || this.hasLongLabels(data)) {
|
|
3729
|
+
textSelection
|
|
3730
|
+
.attr('transform', 'rotate(-45)')
|
|
3731
|
+
.style('text-anchor', 'end')
|
|
3732
|
+
.attr('dx', '-0.5em')
|
|
3733
|
+
.attr('dy', '0.5em');
|
|
3734
|
+
}
|
|
3671
3735
|
if (keyList.length > 1 && !metaData.xLabel) {
|
|
3672
|
-
textSelection.attr('y',
|
|
3736
|
+
textSelection.attr('y', 15);
|
|
3673
3737
|
}
|
|
3674
3738
|
}
|
|
3675
3739
|
else {
|
|
@@ -3678,18 +3742,18 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3678
3742
|
if (this.chartConfiguration.xLabelsOnSameLine) {
|
|
3679
3743
|
this.renderXLabelsOnSameLine(svg, data, metaData);
|
|
3680
3744
|
}
|
|
3681
|
-
//
|
|
3745
|
+
// Bottom x-axis line
|
|
3682
3746
|
svg
|
|
3683
3747
|
.append('g')
|
|
3684
3748
|
.attr('class', 'x2 axis2')
|
|
3685
3749
|
.attr('transform', `translate(0,${height})`)
|
|
3686
|
-
.style('color', '#
|
|
3750
|
+
.style('color', this.chartConfiguration.isXaxisColor || '#999999')
|
|
3687
3751
|
.call(d3.axisBottom(xScaleFromOrigin).tickSize(0))
|
|
3688
|
-
.call((g) => g.select('.domain').attr('
|
|
3752
|
+
.call((g) => g.select('.domain').attr('stroke', this.chartConfiguration.isXaxisColor || '#999999'));
|
|
3689
3753
|
svg.selectAll('g.x2.axis2 g.tick text').style('display', 'none');
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3754
|
+
}
|
|
3755
|
+
hasLongLabels(data) {
|
|
3756
|
+
return data.some((d) => d.name && d.name.length > 10);
|
|
3693
3757
|
}
|
|
3694
3758
|
renderMultiChartXAxis(svg, x, height, data, metaData) {
|
|
3695
3759
|
let alternate_text = false;
|
|
@@ -3712,7 +3776,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3712
3776
|
}
|
|
3713
3777
|
});
|
|
3714
3778
|
alternate_text = false;
|
|
3715
|
-
svg
|
|
3779
|
+
svg
|
|
3780
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
3781
|
+
.attr('class', 'lib-xaxis-labels-texts-weeklycharts')
|
|
3782
|
+
.style('font-size', '11px')
|
|
3783
|
+
.attr('y', () => {
|
|
3716
3784
|
if (alternate_text) {
|
|
3717
3785
|
alternate_text = false;
|
|
3718
3786
|
return long_tick_length_bg;
|
|
@@ -3730,6 +3798,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3730
3798
|
.selectAll('g.x1.axis1 g.tick text')
|
|
3731
3799
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
3732
3800
|
.attr('y', short_tick_length_bg)
|
|
3801
|
+
.style('font-size', '11px')
|
|
3733
3802
|
.text((d) => {
|
|
3734
3803
|
const isValueToBeIgnored = data.some((indiv) => indiv.name.toLowerCase() === d.trim().toLowerCase() &&
|
|
3735
3804
|
indiv[metaData.keyList[0]] === -1);
|
|
@@ -3746,6 +3815,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3746
3815
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
3747
3816
|
.attr('y', long_tick_length_bg)
|
|
3748
3817
|
.attr('fill', 'currentColor')
|
|
3818
|
+
.style('font-size', '11px')
|
|
3749
3819
|
.text((d) => {
|
|
3750
3820
|
if (d.trim().indexOf(' ') > -1) {
|
|
3751
3821
|
return d.trim().substring(d.indexOf(' ')).toLowerCase();
|
|
@@ -3754,33 +3824,21 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3754
3824
|
});
|
|
3755
3825
|
}
|
|
3756
3826
|
renderYAxis(svg, svgYAxisLeft, svgYAxisRight, y, dimensions) {
|
|
3757
|
-
|
|
3758
|
-
.append('g')
|
|
3759
|
-
.attr('class', 'lib-stacked-y-axis-text yaxis-dashed')
|
|
3760
|
-
.attr('style', this.chartConfiguration.yAxisCustomTextStyles)
|
|
3761
|
-
.attr('transform', 'translate(0,0)')
|
|
3762
|
-
.call(y)
|
|
3763
|
-
.style('display', 'none');
|
|
3827
|
+
// Main Y-axis on the left
|
|
3764
3828
|
svgYAxisLeft
|
|
3765
3829
|
.append('g')
|
|
3766
|
-
.
|
|
3767
|
-
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
3830
|
+
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-main')
|
|
3768
3831
|
.attr('style', this.chartConfiguration.yAxisCustomTextStyles)
|
|
3769
|
-
.attr('transform', 'translate(0,0)')
|
|
3770
3832
|
.call(d3
|
|
3771
3833
|
.axisLeft(y)
|
|
3772
3834
|
.tickSize(0)
|
|
3773
3835
|
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
3774
3836
|
.tickFormat(this.chartConfiguration.yAxisLabelFomatter))
|
|
3775
3837
|
.selectAll('text')
|
|
3776
|
-
.style('fill', 'var(--chart-text-color)')
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
.attr('style', this.chartConfiguration.yAxisCustomTextStyles)
|
|
3781
|
-
.attr('transform', 'translate(0,0)')
|
|
3782
|
-
.call(y)
|
|
3783
|
-
.style('display', 'none');
|
|
3838
|
+
.style('fill', 'var(--chart-text-color, #000)')
|
|
3839
|
+
.style('font-size', '11px');
|
|
3840
|
+
// Remove domain line
|
|
3841
|
+
svgYAxisLeft.select('.yaxis-main .domain').remove();
|
|
3784
3842
|
this.applyAxisVisibilitySettings();
|
|
3785
3843
|
}
|
|
3786
3844
|
applyAxisVisibilitySettings() {
|
|
@@ -3788,33 +3846,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3788
3846
|
d3.selectAll('g.lib-line-x-axis-text > g > text').attr('class', 'lib-display-hidden');
|
|
3789
3847
|
}
|
|
3790
3848
|
if (this.chartConfiguration.isYaxisLabelHidden) {
|
|
3791
|
-
d3.selectAll('.yaxis-
|
|
3849
|
+
d3.selectAll('.yaxis-main > g > text').attr('class', 'lib-display-hidden');
|
|
3792
3850
|
}
|
|
3793
3851
|
if (this.chartConfiguration.isYaxisHidden) {
|
|
3794
|
-
d3.selectAll('.yaxis-
|
|
3852
|
+
d3.selectAll('.yaxis-main').attr('class', 'lib-display-hidden');
|
|
3795
3853
|
}
|
|
3796
3854
|
if (this.chartConfiguration.isYaxisDashed) {
|
|
3797
|
-
d3.selectAll('.yaxis-
|
|
3855
|
+
d3.selectAll('.yaxis-main').style('stroke-dasharray', '5 5').style('color', '#999999');
|
|
3798
3856
|
}
|
|
3799
3857
|
}
|
|
3800
|
-
renderYAxisGrid(svg, y, width) {
|
|
3801
|
-
svg
|
|
3802
|
-
.append('g')
|
|
3803
|
-
.call(d3.axisLeft(y).ticks(this.chartConfiguration.numberOfYTicks).tickSize(-width))
|
|
3804
|
-
.style('color', 'var(--chart-axis-color, #B9B9B9)')
|
|
3805
|
-
.style('opacity', '0.5')
|
|
3806
|
-
.call((g) => g.select('.domain').remove());
|
|
3807
|
-
}
|
|
3808
|
-
renderXAxisGrid(svg, x, height) {
|
|
3809
|
-
svg
|
|
3810
|
-
.append('g')
|
|
3811
|
-
.attr('class', 'grid')
|
|
3812
|
-
.attr('transform', `translate(${x.bandwidth() / 2},${height})`)
|
|
3813
|
-
.call(d3.axisBottom(x).tickSize(-height).tickFormat(''))
|
|
3814
|
-
.style('stroke-dasharray', '5 5')
|
|
3815
|
-
.style('color', 'var(--chart-grid-color, #999999)')
|
|
3816
|
-
.call((g) => g.select('.domain').remove());
|
|
3817
|
-
}
|
|
3818
3858
|
renderLineYAxis(svgYAxisRight, lineYscale) {
|
|
3819
3859
|
const yLineAxis = d3
|
|
3820
3860
|
.axisRight(lineYscale)
|
|
@@ -3825,8 +3865,9 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3825
3865
|
.append('g')
|
|
3826
3866
|
.attr('class', 'lib-stacked-y-axis-text1')
|
|
3827
3867
|
.attr('style', this.chartConfiguration.yAxisCustomTextStyles)
|
|
3828
|
-
.
|
|
3829
|
-
.
|
|
3868
|
+
.call(yLineAxis)
|
|
3869
|
+
.selectAll('text')
|
|
3870
|
+
.style('font-size', '11px');
|
|
3830
3871
|
}
|
|
3831
3872
|
renderBars(svg, chartContext, scales, dimensions) {
|
|
3832
3873
|
const { data, metaData, keyList, isRia } = chartContext;
|
|
@@ -3851,16 +3892,18 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3851
3892
|
.attr('width', (d) => this.getBarWidth(d, data, x, xSubgroup))
|
|
3852
3893
|
.attr('height', (d) => this.getBarHeight(d, y, height))
|
|
3853
3894
|
.style('cursor', (d) => (metaData.hasDrillDown && !isRia ? 'pointer' : 'default'))
|
|
3854
|
-
.attr('fill', (d) => this.getBarColor(d, metaData))
|
|
3855
|
-
|
|
3856
|
-
|
|
3895
|
+
.attr('fill', (d) => this.getBarColor(d, metaData))
|
|
3896
|
+
.attr('rx', 2) // Slight rounding for better appearance
|
|
3897
|
+
.attr('ry', 2);
|
|
3898
|
+
if (!isRia && !this.chartConfiguration.noHoverEffect) {
|
|
3899
|
+
state
|
|
3900
|
+
.selectAll('rect')
|
|
3901
|
+
.on('mouseout', (d, i) => this.handleMouseOut(svg))
|
|
3902
|
+
.on('mouseover', (d, i) => this.handleMouseOver(svg, d, data, metaData, x, y, scales.leftAndRightSpaces));
|
|
3857
3903
|
}
|
|
3858
3904
|
if (this.chartConfiguration.textsOnBar && !this.isZoomedOut) {
|
|
3859
3905
|
this.renderBarTexts(state, data, metaData, keyList, x, xSubgroup, y, isRia, svg);
|
|
3860
3906
|
}
|
|
3861
|
-
if (this.chartConfiguration.isDrilldownChart) {
|
|
3862
|
-
svg.selectAll('g.x1.axis1 g.tick line').style('display', 'none');
|
|
3863
|
-
}
|
|
3864
3907
|
}
|
|
3865
3908
|
prepareBarData(d, keyList) {
|
|
3866
3909
|
return keyList.map((key) => ({ key, value: d[key], name: d.name }));
|
|
@@ -3884,7 +3927,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3884
3927
|
data.forEach((indiv) => {
|
|
3885
3928
|
if (indiv.name === d.name) {
|
|
3886
3929
|
const keys = Object.keys(indiv).filter((temp, i) => i !== 0);
|
|
3887
|
-
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
3930
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]).padding(0.1);
|
|
3888
3931
|
if (x.bandwidth() > 100) {
|
|
3889
3932
|
tempScale = this.adjustDrilldownScale(tempScale, data, x);
|
|
3890
3933
|
}
|
|
@@ -3915,7 +3958,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3915
3958
|
data.forEach((indiv) => {
|
|
3916
3959
|
if (indiv.name === d.name) {
|
|
3917
3960
|
const keys = Object.keys(indiv).filter((temp, i) => i !== 0);
|
|
3918
|
-
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
3961
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]).padding(0.1);
|
|
3919
3962
|
if (x.bandwidth() > 100) {
|
|
3920
3963
|
tempScale = this.adjustDrilldownScale(tempScale, data, x);
|
|
3921
3964
|
}
|
|
@@ -3951,12 +3994,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3951
3994
|
.attr('y', 0)
|
|
3952
3995
|
.attr('class', 'lib-data-labels-weeklycharts')
|
|
3953
3996
|
.text((d) => this.getBarTextLabel(d))
|
|
3954
|
-
.style('fill', '#000')
|
|
3997
|
+
.style('fill', this.chartConfiguration.barVauleColor || '#000')
|
|
3955
3998
|
.style('font-weight', 'bold')
|
|
3956
3999
|
.style('font-size', () => this.getBarTextFontSize())
|
|
3957
4000
|
.attr('transform', (d) => this.getBarTextTransform(d, data, x, xSubgroup, y))
|
|
3958
4001
|
.on('click', (d) => this.handleBarClick(d, metaData));
|
|
3959
|
-
if (!isRia) {
|
|
4002
|
+
if (!isRia && !this.chartConfiguration.noHoverEffect) {
|
|
3960
4003
|
state
|
|
3961
4004
|
.selectAll('.lib-data-labels-weeklycharts')
|
|
3962
4005
|
.on('mouseout', (d, i) => this.handleMouseOut(svg))
|
|
@@ -3976,21 +4019,21 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3976
4019
|
return '10px';
|
|
3977
4020
|
return '14px';
|
|
3978
4021
|
}
|
|
3979
|
-
return '
|
|
4022
|
+
return '12px';
|
|
3980
4023
|
}
|
|
3981
4024
|
getBarTextTransform(d, data, x, xSubgroup, y) {
|
|
3982
4025
|
let tempScale;
|
|
3983
4026
|
data.forEach((indiv) => {
|
|
3984
4027
|
if (indiv.name === d.name) {
|
|
3985
4028
|
const keys = Object.keys(indiv).filter((temp, i) => i !== 0);
|
|
3986
|
-
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
4029
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]).padding(0.1);
|
|
3987
4030
|
if (x.bandwidth() > 100) {
|
|
3988
4031
|
tempScale = this.adjustDrilldownScale(tempScale, data, x);
|
|
3989
4032
|
}
|
|
3990
4033
|
}
|
|
3991
4034
|
});
|
|
3992
4035
|
if (this.chartConfiguration.textAlwaysHorizontal) {
|
|
3993
|
-
return `translate(${xSubgroup(d.key)},${y(d.value) -
|
|
4036
|
+
return `translate(${xSubgroup(d.key) + xSubgroup.bandwidth() / 2},${y(d.value) - 5})`;
|
|
3994
4037
|
}
|
|
3995
4038
|
if (tempScale && !isNaN(tempScale(d.key))) {
|
|
3996
4039
|
return `translate(${tempScale(d.key) + tempScale.bandwidth() * 0.55},${y(0) - 10}) rotate(270)`;
|
|
@@ -3998,12 +4041,14 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3998
4041
|
return 'translate(0,0)';
|
|
3999
4042
|
}
|
|
4000
4043
|
handleMouseOver(svg, d, data, metaData, x, y, leftAndRightSpaces) {
|
|
4044
|
+
if (this.chartConfiguration.noHoverDisplayData)
|
|
4045
|
+
return;
|
|
4001
4046
|
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
4002
4047
|
let tempScale;
|
|
4003
4048
|
data.forEach((indiv) => {
|
|
4004
4049
|
if (indiv.name === d.name) {
|
|
4005
4050
|
const keys = Object.keys(indiv).filter((temp, i) => i !== 0);
|
|
4006
|
-
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
4051
|
+
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]).padding(0.1);
|
|
4007
4052
|
if (x.bandwidth() > 100) {
|
|
4008
4053
|
tempScale = this.adjustDrilldownScale(tempScale, data, x);
|
|
4009
4054
|
}
|
|
@@ -4012,10 +4057,10 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4012
4057
|
const foreignObject = svg
|
|
4013
4058
|
.append('foreignObject')
|
|
4014
4059
|
.attr('x', () => this.calculateTooltipX(d, x, tempScale, metaData, leftAndRightSpaces))
|
|
4015
|
-
.attr('y', () => y(d.value) -
|
|
4060
|
+
.attr('y', () => Math.max(y(d.value) - 50, 0))
|
|
4016
4061
|
.attr('class', 'lib-verticalstack-title-ontop')
|
|
4017
4062
|
.attr('width', () => this.calculateTooltipWidth(tempScale, metaData, leftAndRightSpaces))
|
|
4018
|
-
.attr('height',
|
|
4063
|
+
.attr('height', 45);
|
|
4019
4064
|
foreignObject
|
|
4020
4065
|
.append('xhtml:div')
|
|
4021
4066
|
.attr('class', 'title')
|
|
@@ -4049,11 +4094,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4049
4094
|
getTooltipHTML(d, metaData) {
|
|
4050
4095
|
const dataType = metaData.dataType || '';
|
|
4051
4096
|
if (!this.isZoomedOut) {
|
|
4052
|
-
return `<
|
|
4097
|
+
return `<div class="title-bar-name">${d.name}</div><div class="title-bar-value">${d.value}${dataType}</div>`;
|
|
4053
4098
|
}
|
|
4054
4099
|
else {
|
|
4055
4100
|
const tempKey = d.name.length <= 8 ? d.name : d.name.substring(0, 5) + '...';
|
|
4056
|
-
return `<
|
|
4101
|
+
return `<div class="title-bar-name">${tempKey}: ${d.value}${dataType}</div><div class="title-bottom-text">${d.name}</div>`;
|
|
4057
4102
|
}
|
|
4058
4103
|
}
|
|
4059
4104
|
handleMouseOut(svg) {
|
|
@@ -4083,36 +4128,20 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4083
4128
|
.attr('x', 0 - height / 2)
|
|
4084
4129
|
.attr('dy', '1em')
|
|
4085
4130
|
.style('text-anchor', 'middle')
|
|
4086
|
-
.
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
}
|
|
4090
|
-
else {
|
|
4091
|
-
svgYAxisLeft
|
|
4092
|
-
.selectAll('.lib-axis-group-label')
|
|
4093
|
-
.attr('class', 'lib-ylabel-weeklyCharts')
|
|
4094
|
-
.text(yLabel.toLowerCase());
|
|
4095
|
-
}
|
|
4131
|
+
.style('font-size', '12px')
|
|
4132
|
+
.attr('fill', 'var(--chart-text-color, #000)')
|
|
4133
|
+
.text(yLabel);
|
|
4096
4134
|
}
|
|
4097
4135
|
renderXAxisLabel(svg, xLabel, width, height, margin) {
|
|
4098
4136
|
const isAcronym = this.isAcronym(xLabel.replace(/[^A-Za-z]/g, ''));
|
|
4099
|
-
let baseClass = 'lib-axis-group-label font-size-1';
|
|
4100
|
-
if (this.chartConfiguration.isDrilldownChart) {
|
|
4101
|
-
baseClass += ' lib-xlabel-drilldowncharts';
|
|
4102
|
-
}
|
|
4103
|
-
else if (this.chartConfiguration.isMultiChartGridLine !== undefined) {
|
|
4104
|
-
baseClass += ' lib-xlabel-weeklyCharts';
|
|
4105
|
-
}
|
|
4106
|
-
else {
|
|
4107
|
-
baseClass += ' lib-axis-waterfall-label';
|
|
4108
|
-
}
|
|
4109
4137
|
svg
|
|
4110
4138
|
.append('text')
|
|
4111
|
-
.attr('class',
|
|
4139
|
+
.attr('class', 'lib-axis-group-label font-size-1')
|
|
4112
4140
|
.attr('style', this.chartConfiguration.xAxisCustomlabelStyles)
|
|
4113
|
-
.attr('transform', `translate(${width / 2},${height + margin.
|
|
4141
|
+
.attr('transform', `translate(${width / 2},${height + margin.bottom - 10})`)
|
|
4114
4142
|
.style('text-anchor', 'middle')
|
|
4115
|
-
.style('
|
|
4143
|
+
.style('font-size', '12px')
|
|
4144
|
+
.style('fill', 'var(--chart-text-color, #000)')
|
|
4116
4145
|
.text(isAcronym ? xLabel.toUpperCase() : xLabel.toLowerCase())
|
|
4117
4146
|
.style('text-transform', isAcronym ? 'none' : 'capitalize');
|
|
4118
4147
|
}
|
|
@@ -4130,7 +4159,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4130
4159
|
.attr('x', 100)
|
|
4131
4160
|
.attr('dy', '5em')
|
|
4132
4161
|
.style('text-anchor', 'middle')
|
|
4133
|
-
.style('font-size', '
|
|
4162
|
+
.style('font-size', '12px')
|
|
4134
4163
|
.text(lineyLabel);
|
|
4135
4164
|
}
|
|
4136
4165
|
renderTargetLine(svgElements, scales, chartContext, dimensions) {
|
|
@@ -4149,7 +4178,8 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4149
4178
|
.attr('y1', yZero)
|
|
4150
4179
|
.attr('y2', yZero)
|
|
4151
4180
|
.style('stroke-dasharray', '5 5')
|
|
4152
|
-
.style('stroke', targetData.color)
|
|
4181
|
+
.style('stroke', targetData.color)
|
|
4182
|
+
.style('stroke-width', '2');
|
|
4153
4183
|
const rightSvgWidth = 60;
|
|
4154
4184
|
svgYAxisRight
|
|
4155
4185
|
.append('foreignObject')
|
|
@@ -4158,7 +4188,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4158
4188
|
.attr('height', 50)
|
|
4159
4189
|
.append('xhtml:div')
|
|
4160
4190
|
.attr('class', 'target-display')
|
|
4161
|
-
.style('color', 'var(--chart-text-color)')
|
|
4191
|
+
.style('color', 'var(--chart-text-color, #000)')
|
|
4162
4192
|
.html(() => {
|
|
4163
4193
|
const dataType = metaData.dataType || '';
|
|
4164
4194
|
const targetName = targetData.targetName || 'target';
|
|
@@ -4175,7 +4205,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4175
4205
|
.datum(lineData)
|
|
4176
4206
|
.attr('fill', 'none')
|
|
4177
4207
|
.attr('stroke', this.chartConfiguration.lineGraphColor)
|
|
4178
|
-
.attr('stroke-width',
|
|
4208
|
+
.attr('stroke-width', 2)
|
|
4179
4209
|
.attr('d', d3
|
|
4180
4210
|
.line()
|
|
4181
4211
|
.x((d) => x(d.name) + x.bandwidth() / 2)
|
|
@@ -4193,16 +4223,17 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4193
4223
|
.attr('cx', (d) => x(d.name) + x.bandwidth() / 2)
|
|
4194
4224
|
.attr('cy', (d) => lineYscale(d.value))
|
|
4195
4225
|
.style('cursor', 'pointer')
|
|
4196
|
-
.attr('r',
|
|
4226
|
+
.attr('r', 4);
|
|
4197
4227
|
if (this.chartConfiguration.lineGraphColor) {
|
|
4198
4228
|
dot
|
|
4199
4229
|
.append('text')
|
|
4200
4230
|
.attr('class', 'dot')
|
|
4201
4231
|
.attr('color', this.chartConfiguration.lineGraphColor)
|
|
4202
|
-
.attr('style', 'font-size:
|
|
4232
|
+
.attr('style', 'font-size: 11px; font-weight: bold')
|
|
4203
4233
|
.attr('x', (d) => x(d.name) + x.bandwidth() / 2)
|
|
4204
4234
|
.attr('y', (d) => lineYscale(d.value))
|
|
4205
4235
|
.attr('dy', '-1em')
|
|
4236
|
+
.attr('text-anchor', 'middle')
|
|
4206
4237
|
.text((d) => this.chartConfiguration.labelFormatter(d.value));
|
|
4207
4238
|
}
|
|
4208
4239
|
}
|
|
@@ -4226,11 +4257,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4226
4257
|
this.clickEvent.emit(event);
|
|
4227
4258
|
}
|
|
4228
4259
|
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 }); }
|
|
4260
|
+
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:#fff;height:auto;min-height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:4px;padding:8px 12px;border:1px solid #d9d9d9;box-shadow:0 2px 8px #00000026;line-height:1.3;pointer-events:none}.title:after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #ffffff;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;display:block;margin-bottom:4px}.title-bar-value{color:#000;font-size:12px;font-weight:700;display:block}.title-bottom-text{color:#4f4f4f;font-size:11px;margin-top:2px}.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}.inner-container::-webkit-scrollbar{height:8px;width:8px}.inner-container::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.inner-container::-webkit-scrollbar-thumb{background:#888;border-radius:4px;transition:background .2s ease}.inner-container::-webkit-scrollbar-thumb:hover{background:#555}.inner-container::-webkit-scrollbar-corner{background:transparent}.inner-container{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.inner-container{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.outer-container{position:relative;overflow:hidden}.y-grid line,.x-grid line{shape-rendering:crispEdges;stroke:var(--chart-grid-color, #E0E0E0);stroke-width:1;opacity:.5}.y-grid path,.x-grid path{stroke-width:0}.x-grid,.y-grid{pointer-events:none}.bars{transition:opacity .2s ease-in-out,filter .2s ease-in-out}.bars:hover{opacity:.85;filter:brightness(1.1)}.lib-chart-svg text{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.domain{stroke:var(--chart-axis-color, #999999);stroke-width:1}.tick line{stroke:var(--chart-axis-color, #999999)}.outer-container svg[style*=\"position: absolute\"]{box-shadow:2px 0 4px #0000000d}.lib-xaxis-labels-texts-drilldown,.lib-xaxis-labels-texts-weeklycharts,.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;fill:var(--chart-text-color, #000000);font-size:11px}.lib-data-labels-weeklycharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;text-anchor:middle;pointer-events:none}.lib-display-hidden{display:none!important}.lib-chart-wrapper{position:relative;width:100%;height:100%}.lib-no-background{background:transparent!important}.lib-chart-svg{width:100%;height:100%;position:relative}@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}}@media screen and (max-width: 1023px) and (min-width: 768px){.lib-chart-wrapper{font-size:11px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:10px!important}.title-bar-name,.title-bar-value{font-size:11px}.inner-container::-webkit-scrollbar{height:6px}}@media screen and (max-width: 767px) and (min-width: 480px){.lib-chart-wrapper{font-size:10px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:9px!important}.title-bar-name,.title-bar-value,.lib-axis-group-label{font-size:10px}.inner-container::-webkit-scrollbar{height:5px}}@media screen and (max-width: 479px){.lib-chart-wrapper{font-size:8px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:8px!important}.title-bar-name,.title-bar-value,.lib-axis-group-label{font-size:9px}.inner-container::-webkit-scrollbar{height:4px}.zoomIcons{width:25px;height:25px}}@media print{.inner-container{overflow:visible!important}.outer-container svg[style*=\"position: absolute\"]{box-shadow:none}.bars{transition:none}}\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
4261
|
}
|
|
4231
4262
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupChartComponent, decorators: [{
|
|
4232
4263
|
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"] }]
|
|
4264
|
+
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:#fff;height:auto;min-height:35px;display:flex;flex-direction:column;justify-content:center;align-items:center;border-radius:4px;padding:8px 12px;border:1px solid #d9d9d9;box-shadow:0 2px 8px #00000026;line-height:1.3;pointer-events:none}.title:after{content:\"\";position:absolute;bottom:-10px;left:50%;margin-left:-10px;width:0;height:0;border-top:solid 10px #ffffff;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;display:block;margin-bottom:4px}.title-bar-value{color:#000;font-size:12px;font-weight:700;display:block}.title-bottom-text{color:#4f4f4f;font-size:11px;margin-top:2px}.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}.inner-container::-webkit-scrollbar{height:8px;width:8px}.inner-container::-webkit-scrollbar-track{background:#f1f1f1;border-radius:4px}.inner-container::-webkit-scrollbar-thumb{background:#888;border-radius:4px;transition:background .2s ease}.inner-container::-webkit-scrollbar-thumb:hover{background:#555}.inner-container::-webkit-scrollbar-corner{background:transparent}.inner-container{scrollbar-width:thin;scrollbar-color:#888 #f1f1f1}.inner-container{scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.outer-container{position:relative;overflow:hidden}.y-grid line,.x-grid line{shape-rendering:crispEdges;stroke:var(--chart-grid-color, #E0E0E0);stroke-width:1;opacity:.5}.y-grid path,.x-grid path{stroke-width:0}.x-grid,.y-grid{pointer-events:none}.bars{transition:opacity .2s ease-in-out,filter .2s ease-in-out}.bars:hover{opacity:.85;filter:brightness(1.1)}.lib-chart-svg text{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.domain{stroke:var(--chart-axis-color, #999999);stroke-width:1}.tick line{stroke:var(--chart-axis-color, #999999)}.outer-container svg[style*=\"position: absolute\"]{box-shadow:2px 0 4px #0000000d}.lib-xaxis-labels-texts-drilldown,.lib-xaxis-labels-texts-weeklycharts,.lib-yaxis-labels-texts-drilldown{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;fill:var(--chart-text-color, #000000);font-size:11px}.lib-data-labels-weeklycharts{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto;text-anchor:middle;pointer-events:none}.lib-display-hidden{display:none!important}.lib-chart-wrapper{position:relative;width:100%;height:100%}.lib-no-background{background:transparent!important}.lib-chart-svg{width:100%;height:100%;position:relative}@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}}@media screen and (max-width: 1023px) and (min-width: 768px){.lib-chart-wrapper{font-size:11px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:10px!important}.title-bar-name,.title-bar-value{font-size:11px}.inner-container::-webkit-scrollbar{height:6px}}@media screen and (max-width: 767px) and (min-width: 480px){.lib-chart-wrapper{font-size:10px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:9px!important}.title-bar-name,.title-bar-value,.lib-axis-group-label{font-size:10px}.inner-container::-webkit-scrollbar{height:5px}}@media screen and (max-width: 479px){.lib-chart-wrapper{font-size:8px}.lib-xaxis-labels-texts-drilldown,.lib-yaxis-labels-texts-drilldown{font-size:8px!important}.title-bar-name,.title-bar-value,.lib-axis-group-label{font-size:9px}.inner-container::-webkit-scrollbar{height:4px}.zoomIcons{width:25px;height:25px}}@media print{.inner-container{overflow:visible!important}.outer-container svg[style*=\"position: absolute\"]{box-shadow:none}.bars{transition:none}}\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
4265
|
}], ctorParameters: () => [], propDecorators: { containerElt: [{
|
|
4235
4266
|
type: ViewChild,
|
|
4236
4267
|
args: ['groupchartcontainer', { static: true }]
|
|
@@ -7788,7 +7819,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7788
7819
|
// .call((g) => { if (!isria) g.select('.domain').remove(); })
|
|
7789
7820
|
.call(g => {
|
|
7790
7821
|
// RIA + single subgroup → remove domain
|
|
7791
|
-
if (isria &&
|
|
7822
|
+
if (isria && subgroups.length === 1) {
|
|
7792
7823
|
g.select('.domain').remove();
|
|
7793
7824
|
return;
|
|
7794
7825
|
}
|
|
@@ -7803,7 +7834,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7803
7834
|
})
|
|
7804
7835
|
.call((g) => {
|
|
7805
7836
|
// Increase spacing between axis and labels
|
|
7806
|
-
if (isria &&
|
|
7837
|
+
if (isria && subgroups.length === 1) {
|
|
7807
7838
|
g.selectAll('.tick text')
|
|
7808
7839
|
.attr('dy', '1em'); // Default is '0.71em', increase for more space
|
|
7809
7840
|
}
|
|
@@ -7866,11 +7897,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7866
7897
|
this.applyXLabelsOnSameLine(svg, subgroups, data, metaData, self, shortTickLengthBg, isMobile, isria);
|
|
7867
7898
|
}
|
|
7868
7899
|
// Mobile override for RIA
|
|
7869
|
-
if (isria && self.chartData.data.length
|
|
7900
|
+
if (isria && self.chartData.data.length > 8) {
|
|
7870
7901
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7871
7902
|
.classed('mobile-xaxis-override', true)
|
|
7872
|
-
|
|
7873
|
-
.text((d) => d.substring(0, 4).toLowerCase())
|
|
7903
|
+
.text((d) => d.substring(0, 3))
|
|
7874
7904
|
.style('font-size', '12px')
|
|
7875
7905
|
.attr('y', 5)
|
|
7876
7906
|
.attr('x', 5)
|