axidio-styleguide-library1-v2 0.0.892 → 0.0.894
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.
|
@@ -3683,7 +3683,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3683
3683
|
headerMenuOptions: HeaderConfigHelper.headerConfig.headerMenuOptions,
|
|
3684
3684
|
xAxisGrid: undefined,
|
|
3685
3685
|
yAxisGrid: false,
|
|
3686
|
-
legendVisible:
|
|
3686
|
+
legendVisible: true,
|
|
3687
3687
|
isHeaderVisible: undefined,
|
|
3688
3688
|
isTransparentBackground: undefined,
|
|
3689
3689
|
isMultiChartGridLine: undefined,
|
|
@@ -3708,17 +3708,16 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3708
3708
|
xLabelsOnSameLine: undefined,
|
|
3709
3709
|
textAlwaysHorizontal: undefined,
|
|
3710
3710
|
legendAtTopRight: undefined,
|
|
3711
|
-
isDrilldownChart:
|
|
3711
|
+
isDrilldownChart: undefined,
|
|
3712
3712
|
displayTitleOnTop: undefined,
|
|
3713
3713
|
isToggleVisible: undefined,
|
|
3714
3714
|
isTitleHidden: undefined,
|
|
3715
3715
|
isDisplayBarDetailsAtBottom: undefined,
|
|
3716
3716
|
howmanyBarDetailsToDisplay: 0,
|
|
3717
3717
|
barVauleColor: undefined,
|
|
3718
|
-
defaultBarHeight: 2,
|
|
3719
3718
|
};
|
|
3720
3719
|
this.uniqueId = this.getUniqueId();
|
|
3721
|
-
this.isZoomedOut =
|
|
3720
|
+
this.isZoomedOut = false;
|
|
3722
3721
|
this.isDD1Open = false;
|
|
3723
3722
|
this.isDD2Open = false;
|
|
3724
3723
|
this.keepOrder = (a, b) => {
|
|
@@ -3749,7 +3748,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3749
3748
|
return false;
|
|
3750
3749
|
}
|
|
3751
3750
|
get isAlertEnabled() {
|
|
3752
|
-
return this.chartConfiguration?.headerMenuOptions?.some(
|
|
3751
|
+
return this.chartConfiguration?.headerMenuOptions?.some(option => option.id === 'editAlert');
|
|
3753
3752
|
}
|
|
3754
3753
|
initializegroupChart() {
|
|
3755
3754
|
var self = this;
|
|
@@ -3760,10 +3759,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3760
3759
|
let colorMap = {};
|
|
3761
3760
|
var formatFromBackend;
|
|
3762
3761
|
var formatForHugeNumbers;
|
|
3763
|
-
const isMobile = window.innerWidth < 576;
|
|
3764
|
-
const isTablet = window.innerWidth >= 576 && window.innerWidth < 992;
|
|
3765
|
-
const isDesktop = window.innerWidth >= 992;
|
|
3766
|
-
let isria = this.customChartConfiguration.isRia;
|
|
3767
3762
|
var x;
|
|
3768
3763
|
var alternate_text = false;
|
|
3769
3764
|
var short_tick_length = 4;
|
|
@@ -3838,20 +3833,13 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3838
3833
|
? this.chartConfiguration.svgHeight
|
|
3839
3834
|
: parseInt(verticalstackedcontainer.style('height'));
|
|
3840
3835
|
}
|
|
3841
|
-
if (this.chartConfiguration.isDrilldownChart
|
|
3836
|
+
if (this.chartConfiguration.isDrilldownChart) {
|
|
3842
3837
|
height =
|
|
3843
3838
|
parseInt(verticalstackedcontainer.style('height')) -
|
|
3844
3839
|
margin.top -
|
|
3845
3840
|
margin.bottom -
|
|
3846
3841
|
130;
|
|
3847
3842
|
}
|
|
3848
|
-
if (this.chartConfiguration.isHeaderVisible) {
|
|
3849
|
-
height =
|
|
3850
|
-
parseInt(verticalstackedcontainer.style('height')) -
|
|
3851
|
-
margin.top -
|
|
3852
|
-
margin.bottom -
|
|
3853
|
-
100;
|
|
3854
|
-
}
|
|
3855
3843
|
/**
|
|
3856
3844
|
* for hiding header
|
|
3857
3845
|
* used by weekly charts
|
|
@@ -3936,7 +3924,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3936
3924
|
.scaleBand()
|
|
3937
3925
|
.rangeRound([width, 0])
|
|
3938
3926
|
.align(0.5)
|
|
3939
|
-
.padding([0.5])
|
|
3940
3927
|
.domain(data.map(function (d) {
|
|
3941
3928
|
return d.name.toLowerCase();
|
|
3942
3929
|
}));
|
|
@@ -3946,7 +3933,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3946
3933
|
.scaleBand()
|
|
3947
3934
|
.domain(groups)
|
|
3948
3935
|
.range([leftAndRightSpaces, width - rightSvgWidth - leftAndRightSpaces])
|
|
3949
|
-
.padding([0.
|
|
3936
|
+
.padding([0.2]);
|
|
3950
3937
|
}
|
|
3951
3938
|
// x.bandwidth(96);
|
|
3952
3939
|
var xScaleFromOrigin = d3
|
|
@@ -3972,14 +3959,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3972
3959
|
svg
|
|
3973
3960
|
.append('g')
|
|
3974
3961
|
.attr('class', 'x1 axis1')
|
|
3975
|
-
.attr('transform', 'translate(
|
|
3962
|
+
.attr('transform', 'translate(-25,' + height + ')')
|
|
3976
3963
|
.call(d3.axisBottom(x))
|
|
3977
3964
|
.call((g) => g.select('.domain').remove());
|
|
3978
3965
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|
|
3979
|
-
svg
|
|
3980
|
-
.
|
|
3981
|
-
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
3982
|
-
.style('fill', 'var(--chart-text-color)');
|
|
3966
|
+
svg.selectAll('g.x1.axis1 g.tick text')
|
|
3967
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown');
|
|
3983
3968
|
// .attr('y', function () {
|
|
3984
3969
|
// if (alternate_text) {
|
|
3985
3970
|
// alternate_text = false;
|
|
@@ -4000,7 +3985,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4000
3985
|
svg
|
|
4001
3986
|
.append('g')
|
|
4002
3987
|
.attr('class', 'x1 axis1')
|
|
4003
|
-
.attr('transform', 'translate(
|
|
3988
|
+
.attr('transform', 'translate(-25,' + height + ')')
|
|
4004
3989
|
.call(d3.axisBottom(x).tickSize(0))
|
|
4005
3990
|
.call((g) => g.select('.domain').attr('fill', 'none'));
|
|
4006
3991
|
/**
|
|
@@ -4043,22 +4028,9 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4043
4028
|
svg
|
|
4044
4029
|
.selectAll('g.x1.axis1 g.tick text')
|
|
4045
4030
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
4046
|
-
.
|
|
4047
|
-
.attr('y', this.isHeaderVisible
|
|
4048
|
-
? short_tick_length_bg + 25
|
|
4049
|
-
: short_tick_length_bg)
|
|
4050
|
-
.attr('x', function (d) {
|
|
4051
|
-
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
4052
|
-
return -25; // Move first line text slightly to the left too
|
|
4053
|
-
}
|
|
4054
|
-
return 0; // Default position
|
|
4055
|
-
})
|
|
4031
|
+
.attr('y', short_tick_length_bg)
|
|
4056
4032
|
.text(function (d) {
|
|
4057
4033
|
var isValueToBeIgnored = false;
|
|
4058
|
-
if (isMobile && !self.isHeaderVisible) {
|
|
4059
|
-
let firstPart = d.split(/[\s\-]+/)[0];
|
|
4060
|
-
return firstPart.substring(0, 3).toLowerCase();
|
|
4061
|
-
}
|
|
4062
4034
|
data.map((indiv) => {
|
|
4063
4035
|
if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
|
|
4064
4036
|
indiv[metaData.keyList[0]] == -1) {
|
|
@@ -4068,43 +4040,23 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4068
4040
|
if (isValueToBeIgnored) {
|
|
4069
4041
|
return '';
|
|
4070
4042
|
}
|
|
4071
|
-
// If label looks like a date (contains digits and - or /), show full label as one line
|
|
4072
|
-
if (/\d{2,4}[-\/]/.test(d)) {
|
|
4073
|
-
return d;
|
|
4074
|
-
}
|
|
4075
4043
|
if (d.trim().indexOf(' ') > -1) {
|
|
4076
4044
|
return d.trim().substring(0, d.indexOf(' ')).toLowerCase();
|
|
4077
4045
|
}
|
|
4078
4046
|
return d.toLowerCase();
|
|
4079
4047
|
});
|
|
4080
|
-
if (!isMobile) {
|
|
4081
|
-
svg
|
|
4082
|
-
.selectAll('g.x1.axis1 g.tick')
|
|
4083
|
-
.filter(function (d) {
|
|
4084
|
-
return !/\d{2,4}[-\/]/.test(d); // Only process non-date labels
|
|
4085
|
-
})
|
|
4086
|
-
.append('text')
|
|
4087
|
-
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
4088
|
-
.attr('y', long_tick_length_bg)
|
|
4089
|
-
.attr('fill', 'var(--chart-text-color)')
|
|
4090
|
-
.attr('x', function (d) {
|
|
4091
|
-
if (self.chartData.data.length > 8 && !self.isZoomedOut) {
|
|
4092
|
-
return -25; // Move text slightly to the left
|
|
4093
|
-
}
|
|
4094
|
-
return 0; // Default position
|
|
4095
|
-
})
|
|
4096
|
-
.text(function (d) {
|
|
4097
|
-
if (d.trim().indexOf(' ') > -1) {
|
|
4098
|
-
return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
|
|
4099
|
-
}
|
|
4100
|
-
return '';
|
|
4101
|
-
});
|
|
4102
|
-
}
|
|
4103
|
-
}
|
|
4104
|
-
if (isMobile && !this.isHeaderVisible) {
|
|
4105
4048
|
svg
|
|
4106
|
-
.selectAll('g.x1.axis1 g.tick
|
|
4107
|
-
.
|
|
4049
|
+
.selectAll('g.x1.axis1 g.tick')
|
|
4050
|
+
.append('text')
|
|
4051
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
4052
|
+
.attr('y', long_tick_length_bg)
|
|
4053
|
+
.attr('fill', 'currentColor')
|
|
4054
|
+
.text(function (d) {
|
|
4055
|
+
if (d.trim().indexOf(' ') > -1) {
|
|
4056
|
+
return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
|
|
4057
|
+
}
|
|
4058
|
+
return '';
|
|
4059
|
+
});
|
|
4108
4060
|
}
|
|
4109
4061
|
/**y scale for left y axis */
|
|
4110
4062
|
var y = d3.scaleLinear().rangeRound([height, 0]);
|
|
@@ -4186,35 +4138,30 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4186
4138
|
.attr('transform', 'translate(' + x.bandwidth() / 2 + ',' + height + ')')
|
|
4187
4139
|
.call(d3.axisBottom(x).tickSize(-height).tickFormat(''))
|
|
4188
4140
|
.style('stroke-dasharray', '5 5')
|
|
4189
|
-
.style('color', '
|
|
4141
|
+
.style('color', '#999999')
|
|
4190
4142
|
.call((g) => g.select('.domain').remove());
|
|
4191
4143
|
}
|
|
4192
4144
|
if (this.chartConfiguration.yAxisGrid) {
|
|
4145
|
+
/**
|
|
4146
|
+
* draw y axis
|
|
4147
|
+
*/
|
|
4193
4148
|
svg
|
|
4194
4149
|
.append('g')
|
|
4195
4150
|
.call(d3
|
|
4196
4151
|
.axisLeft(y)
|
|
4197
4152
|
.ticks(self.chartConfiguration.numberOfYTicks)
|
|
4198
4153
|
.tickSize(-width))
|
|
4199
|
-
.style('color', '
|
|
4154
|
+
.style('color', '#B9B9B9')
|
|
4200
4155
|
.style('opacity', '0.5')
|
|
4201
|
-
.call((g) =>
|
|
4202
|
-
g.select('.domain')
|
|
4203
|
-
.remove()
|
|
4204
|
-
.style('stroke', 'var(--chart-domain-color, #000000)'); // Add CSS variable for domain
|
|
4205
|
-
});
|
|
4156
|
+
.call((g) => g.select('.domain').remove());
|
|
4206
4157
|
}
|
|
4207
4158
|
else {
|
|
4208
4159
|
svg
|
|
4209
4160
|
.append('g')
|
|
4210
4161
|
.call(d3.axisLeft(y).ticks(self.chartConfiguration.numberOfYTicks))
|
|
4211
|
-
.style('color', '
|
|
4162
|
+
.style('color', '#B9B9B9')
|
|
4212
4163
|
.style('opacity', '0.5')
|
|
4213
|
-
.call((g) =>
|
|
4214
|
-
g.select('.domain')
|
|
4215
|
-
.style('stroke', 'var(--chart-domain-color, #000000)') // Add CSS variable for domain
|
|
4216
|
-
.style('stroke-width', '1px'); // Ensure visibility
|
|
4217
|
-
});
|
|
4164
|
+
.call((g) => g.select('.domain').remove());
|
|
4218
4165
|
}
|
|
4219
4166
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
4220
4167
|
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
@@ -4281,15 +4228,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4281
4228
|
if (self.chartData.data.length == 1) {
|
|
4282
4229
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
4283
4230
|
tempScale.range([
|
|
4284
|
-
0 + (x.bandwidth() -
|
|
4285
|
-
x.bandwidth() - (x.bandwidth() -
|
|
4231
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
4232
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
4286
4233
|
]);
|
|
4287
4234
|
// .padding(0.05);
|
|
4288
4235
|
}
|
|
4289
4236
|
else
|
|
4290
4237
|
tempScale.range([
|
|
4291
|
-
0 + (x.bandwidth() -
|
|
4292
|
-
x.bandwidth() - (x.bandwidth() -
|
|
4238
|
+
0 + (x.bandwidth() - 300) / 2,
|
|
4239
|
+
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
4293
4240
|
]);
|
|
4294
4241
|
// .padding(0.05);
|
|
4295
4242
|
}
|
|
@@ -4306,15 +4253,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4306
4253
|
return xSubgroup(d.key);
|
|
4307
4254
|
})
|
|
4308
4255
|
.attr('y', function (d) {
|
|
4309
|
-
|
|
4310
|
-
return y(0);
|
|
4311
|
-
}
|
|
4312
|
-
if (d.value >= 0) {
|
|
4313
|
-
const barHeight = height - y(d.value);
|
|
4314
|
-
const minHeight = self.chartConfiguration.defaultBarHeight || 2;
|
|
4315
|
-
return barHeight < minHeight ? y(0) - minHeight : y(d.value);
|
|
4316
|
-
}
|
|
4317
|
-
return y(0);
|
|
4256
|
+
return y(d.value);
|
|
4318
4257
|
})
|
|
4319
4258
|
.attr('width', function (d) {
|
|
4320
4259
|
if (self.chartConfiguration.isDrilldownChart) {
|
|
@@ -4328,15 +4267,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4328
4267
|
if (self.chartData.data.length == 1) {
|
|
4329
4268
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
4330
4269
|
tempScale.range([
|
|
4331
|
-
0 + (x.bandwidth() -
|
|
4332
|
-
x.bandwidth() - (x.bandwidth() -
|
|
4270
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
4271
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
4333
4272
|
]);
|
|
4334
4273
|
// .padding(0.05);
|
|
4335
4274
|
}
|
|
4336
4275
|
else
|
|
4337
4276
|
tempScale.range([
|
|
4338
|
-
0 + (x.bandwidth() -
|
|
4339
|
-
x.bandwidth() - (x.bandwidth() -
|
|
4277
|
+
0 + (x.bandwidth() - 300) / 2,
|
|
4278
|
+
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
4340
4279
|
]);
|
|
4341
4280
|
// .padding(0.05);
|
|
4342
4281
|
}
|
|
@@ -4348,30 +4287,25 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4348
4287
|
}
|
|
4349
4288
|
}
|
|
4350
4289
|
});
|
|
4351
|
-
return
|
|
4352
|
-
? tempScale.bandwidth()
|
|
4353
|
-
: self.chartData.data.length && self.chartData.data.length > 8
|
|
4354
|
-
? tempScale.bandwidth() * 0.5
|
|
4355
|
-
: tempScale.bandwidth();
|
|
4290
|
+
return tempScale.bandwidth();
|
|
4356
4291
|
}
|
|
4357
|
-
return
|
|
4358
|
-
? tempScale.bandwidth()
|
|
4359
|
-
: self.chartData.data.length && self.chartData.data.length > 8
|
|
4360
|
-
? tempScale.bandwidth() * 0.5
|
|
4361
|
-
: tempScale.bandwidth();
|
|
4292
|
+
return xSubgroup.bandwidth();
|
|
4362
4293
|
})
|
|
4363
4294
|
.attr('height', function (d) {
|
|
4364
4295
|
if (d.value == -1) {
|
|
4365
4296
|
return height - y(0);
|
|
4366
4297
|
}
|
|
4367
|
-
if (d.value
|
|
4368
|
-
|
|
4369
|
-
const minHeight = self.chartConfiguration.defaultBarHeight || 2;
|
|
4370
|
-
return Math.max(barHeight, minHeight);
|
|
4371
|
-
}
|
|
4298
|
+
if (d.value)
|
|
4299
|
+
return height - y(d.value);
|
|
4372
4300
|
return height - y(0);
|
|
4373
4301
|
})
|
|
4374
|
-
.style('cursor',
|
|
4302
|
+
// .style('cursor', 'pointer')
|
|
4303
|
+
.style('cursor', function (d) {
|
|
4304
|
+
if (metaData.hasDrillDown)
|
|
4305
|
+
return 'pointer';
|
|
4306
|
+
else
|
|
4307
|
+
return 'default';
|
|
4308
|
+
})
|
|
4375
4309
|
.attr('fill', function (d) {
|
|
4376
4310
|
if (d.value &&
|
|
4377
4311
|
self.chartData.targetLineData &&
|
|
@@ -4396,7 +4330,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4396
4330
|
})
|
|
4397
4331
|
.enter()
|
|
4398
4332
|
.append('text')
|
|
4399
|
-
.attr('fill', 'var(--chart-text-color)')
|
|
4400
4333
|
.attr('x', function (d) {
|
|
4401
4334
|
return 0;
|
|
4402
4335
|
})
|
|
@@ -4416,9 +4349,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4416
4349
|
})
|
|
4417
4350
|
.style('font-weight', 'bold')
|
|
4418
4351
|
.style('font-size', function (d) {
|
|
4419
|
-
if (self.isZoomedOut) {
|
|
4420
|
-
return '9px'; // 👈 Zoomed out mode
|
|
4421
|
-
}
|
|
4422
4352
|
if (self.chartConfiguration.isDrilldownChart) {
|
|
4423
4353
|
if (window.innerWidth > 1900) {
|
|
4424
4354
|
return '18px';
|
|
@@ -4512,7 +4442,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4512
4442
|
svg
|
|
4513
4443
|
.append('foreignObject')
|
|
4514
4444
|
.attr('x', function () {
|
|
4515
|
-
//
|
|
4445
|
+
// var tempScale;
|
|
4516
4446
|
var elementsCounter;
|
|
4517
4447
|
data.map((indiv) => {
|
|
4518
4448
|
if (indiv.name == d.name) {
|
|
@@ -4526,12 +4456,14 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4526
4456
|
0 + (x.bandwidth() - 200) / 2,
|
|
4527
4457
|
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
4528
4458
|
]);
|
|
4459
|
+
// .padding(0.05);
|
|
4529
4460
|
}
|
|
4530
4461
|
else
|
|
4531
4462
|
tempScale.range([
|
|
4532
4463
|
0 + (x.bandwidth() - 300) / 2,
|
|
4533
4464
|
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
4534
4465
|
]);
|
|
4466
|
+
// .padding(0.05);
|
|
4535
4467
|
}
|
|
4536
4468
|
else
|
|
4537
4469
|
tempScale.range([
|
|
@@ -4555,12 +4487,13 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4555
4487
|
})
|
|
4556
4488
|
.attr('class', 'lib-verticalstack-title-ontop')
|
|
4557
4489
|
.attr('y', function () {
|
|
4558
|
-
return y(d.value) - 3 - 40
|
|
4490
|
+
return y(d.value) - 3 - 40;
|
|
4559
4491
|
})
|
|
4560
4492
|
.attr('dy', function () {
|
|
4561
4493
|
return d.class;
|
|
4562
4494
|
})
|
|
4563
4495
|
.attr('width', function () {
|
|
4496
|
+
// var tempScale;
|
|
4564
4497
|
data.map((indiv) => {
|
|
4565
4498
|
if (indiv.name == d.name) {
|
|
4566
4499
|
let keys = Object.keys(indiv).filter((temp, i) => i != 0);
|
|
@@ -4572,12 +4505,14 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4572
4505
|
0 + (x.bandwidth() - 200) / 2,
|
|
4573
4506
|
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
4574
4507
|
]);
|
|
4508
|
+
// .padding(0.05);
|
|
4575
4509
|
}
|
|
4576
4510
|
else
|
|
4577
4511
|
tempScale.range([
|
|
4578
4512
|
0 + (x.bandwidth() - 300) / 2,
|
|
4579
4513
|
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
4580
4514
|
]);
|
|
4515
|
+
// .padding(0.05);
|
|
4581
4516
|
}
|
|
4582
4517
|
else
|
|
4583
4518
|
tempScale.range([
|
|
@@ -4601,20 +4536,29 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4601
4536
|
.attr('class', 'title')
|
|
4602
4537
|
.style('z-index', 99)
|
|
4603
4538
|
.html(function () {
|
|
4604
|
-
// Show the x-axis label (bar name) for this bar, not the date or any other value
|
|
4605
|
-
let barLabel = d.name; // This is the x-axis label for the bar
|
|
4606
4539
|
let dataType = metaData.dataType ? metaData.dataType : '';
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4540
|
+
if (!self.isZoomedOut) {
|
|
4541
|
+
let desiredText = '<span class="title-bar-name">' + d.key + '</span>';
|
|
4542
|
+
desiredText +=
|
|
4543
|
+
'<span class="title-bar-value"><span>' +
|
|
4544
|
+
d.value +
|
|
4545
|
+
'</span>' +
|
|
4546
|
+
dataType +
|
|
4547
|
+
'</span>';
|
|
4548
|
+
return desiredText;
|
|
4549
|
+
}
|
|
4550
|
+
else {
|
|
4551
|
+
let tempKey = d.key.length <= 8 ? d.key : d.key.substring(0, 5) + '...';
|
|
4552
|
+
let desiredText = '<span class="title-bar-name">' +
|
|
4553
|
+
tempKey +
|
|
4554
|
+
':' +
|
|
4555
|
+
d.value +
|
|
4615
4556
|
dataType +
|
|
4616
4557
|
'</span>';
|
|
4617
|
-
|
|
4558
|
+
desiredText +=
|
|
4559
|
+
'<span class="title-bar-value">' + d.name + '</span>';
|
|
4560
|
+
return desiredText;
|
|
4561
|
+
}
|
|
4618
4562
|
});
|
|
4619
4563
|
}
|
|
4620
4564
|
function handleMouseOut(d, i) {
|
|
@@ -4652,7 +4596,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4652
4596
|
})
|
|
4653
4597
|
.enter()
|
|
4654
4598
|
.append('text')
|
|
4655
|
-
.attr('fill', 'var(--chart-text-color)')
|
|
4656
4599
|
.attr('class', 'barstext')
|
|
4657
4600
|
.attr('x', function (d) {
|
|
4658
4601
|
return xSubgroup(d.key);
|
|
@@ -4664,7 +4607,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4664
4607
|
.style('fill', function (d) {
|
|
4665
4608
|
return metaData.colors[d.key];
|
|
4666
4609
|
})
|
|
4667
|
-
.attr('width',
|
|
4610
|
+
.attr('width', xSubgroup.bandwidth())
|
|
4668
4611
|
.text(function (d) {
|
|
4669
4612
|
return d.value;
|
|
4670
4613
|
});
|
|
@@ -4674,7 +4617,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4674
4617
|
.append('g')
|
|
4675
4618
|
.attr('class', 'x2 axis2')
|
|
4676
4619
|
.attr('transform', 'translate(0,' + height + ')')
|
|
4677
|
-
.style('color', '
|
|
4620
|
+
.style('color', '#000')
|
|
4678
4621
|
.call(d3.axisBottom(xScaleFromOrigin).tickSize(0))
|
|
4679
4622
|
.call((g) => g.select('.domain').attr('fill', 'none'));
|
|
4680
4623
|
svg.selectAll('g.x2.axis2 g.tick text').style('display', 'none');
|
|
@@ -4686,7 +4629,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4686
4629
|
.call(y)
|
|
4687
4630
|
.style('display', 'none');
|
|
4688
4631
|
svgYAxisLeft
|
|
4689
|
-
.append('g')
|
|
4690
4632
|
.append('g')
|
|
4691
4633
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
4692
4634
|
.attr('style', self.chartConfiguration.yAxisCustomTextStyles)
|
|
@@ -4695,20 +4637,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4695
4637
|
.axisLeft(y)
|
|
4696
4638
|
.tickSize(0)
|
|
4697
4639
|
.ticks(self.chartConfiguration.numberOfYTicks)
|
|
4698
|
-
.tickFormat(
|
|
4699
|
-
const formatted = self.chartConfiguration.yAxisLabelFomatter
|
|
4700
|
-
? self.chartConfiguration.yAxisLabelFomatter(d)
|
|
4701
|
-
: d;
|
|
4702
|
-
return formatted >= 1000 ? formatted / 1000 + 'k' : formatted;
|
|
4703
|
-
}))
|
|
4704
|
-
.call((g) => {
|
|
4705
|
-
// Style the domain line for theme support
|
|
4706
|
-
g.select('.domain')
|
|
4707
|
-
.style('stroke', 'var(--chart-domain-color, #000000)')
|
|
4708
|
-
.style('stroke-width', '1px');
|
|
4709
|
-
})
|
|
4710
|
-
.selectAll('text')
|
|
4711
|
-
.style('fill', 'var(--chart-text-color)');
|
|
4640
|
+
.tickFormat(self.chartConfiguration.yAxisLabelFomatter));
|
|
4712
4641
|
svgYAxisRight
|
|
4713
4642
|
.append('g')
|
|
4714
4643
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
@@ -4749,7 +4678,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4749
4678
|
this.chartConfiguration.isYaxisDashed) {
|
|
4750
4679
|
d3.selectAll('.yaxis-dashed')
|
|
4751
4680
|
.style('stroke-dasharray', '5 5')
|
|
4752
|
-
.style('color', '
|
|
4681
|
+
.style('color', '#999999');
|
|
4753
4682
|
}
|
|
4754
4683
|
if (lineData != null) {
|
|
4755
4684
|
if (lineData && self.chartConfiguration.showLineChartAxis) {
|
|
@@ -4764,69 +4693,64 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4764
4693
|
/**
|
|
4765
4694
|
* used to display y label
|
|
4766
4695
|
*/
|
|
4767
|
-
// if (this.isZoomedOut) {
|
|
4768
|
-
// svg
|
|
4769
|
-
// .selectAll('.lib-xaxis-labels-texts-drilldown')
|
|
4770
|
-
// .attr('class', 'lib-display-hidden');
|
|
4771
|
-
// }
|
|
4772
4696
|
if (this.isZoomedOut) {
|
|
4773
|
-
// svg
|
|
4774
|
-
// .selectAll('.lib-xaxis-labels-texts-drilldown')
|
|
4775
|
-
// .attr('transform', 'rotate(-30)')
|
|
4776
|
-
// .attr('text-anchor', 'end')
|
|
4777
|
-
// .attr('x', '-5')
|
|
4778
|
-
// .attr('dy', null)
|
|
4779
|
-
// .style('fill', 'var(--chart-text-color)');
|
|
4780
4697
|
svg
|
|
4781
4698
|
.selectAll('.lib-xaxis-labels-texts-drilldown')
|
|
4782
|
-
.
|
|
4783
|
-
const text = d3.select(nodes[i]);
|
|
4784
|
-
const label = text.text();
|
|
4785
|
-
const words = label.split(' ');
|
|
4786
|
-
text.text(null); // Clear current text
|
|
4787
|
-
// Add each word to a new tspan
|
|
4788
|
-
words.forEach((word, index) => {
|
|
4789
|
-
text.append('tspan').text(word);
|
|
4790
|
-
// .attr('x', '15')
|
|
4791
|
-
// .attr('dy', index === 0 ? '0em' : '0.9em') // Reduced vertical spacing
|
|
4792
|
-
// .attr('text-anchor', 'end');
|
|
4793
|
-
});
|
|
4794
|
-
})
|
|
4795
|
-
.style('fill', 'var(--chart-text-color)')
|
|
4796
|
-
.attr('transform', null); // Remove rotate if using line breaks
|
|
4797
|
-
// Optional: Adjust bottom margin or chart layout
|
|
4798
|
-
svg
|
|
4799
|
-
.select('.x-axis')
|
|
4800
|
-
.attr('transform', `translate(0, ${height - margin.bottom + 10})`);
|
|
4699
|
+
.attr('class', 'lib-display-hidden');
|
|
4801
4700
|
}
|
|
4802
4701
|
/**
|
|
4803
4702
|
* used to write y labels based on configuration
|
|
4804
4703
|
*/
|
|
4805
4704
|
if (metaData.yLabel) {
|
|
4806
|
-
const yPosition = isria ? 0 - margin.left / 2 - 30 : 0 - margin.left / 2 - 40;
|
|
4807
4705
|
svgYAxisLeft
|
|
4808
4706
|
.append('text')
|
|
4809
4707
|
.attr('class', 'lib-axis-group-label font-size-1')
|
|
4810
4708
|
.attr('style', self.chartConfiguration.yAxisCustomlabelStyles)
|
|
4811
4709
|
.attr('transform', 'rotate(-90)')
|
|
4812
|
-
.attr('y',
|
|
4710
|
+
.attr('y', 0 - margin.left / 2 - 30)
|
|
4813
4711
|
.attr('x', 0 - height / 2)
|
|
4814
4712
|
.attr('dy', '1em')
|
|
4815
|
-
.style('text-anchor', 'middle')
|
|
4816
|
-
|
|
4817
|
-
if (this.chartConfiguration.isMultiChartGridLine === undefined) {
|
|
4713
|
+
.style('text-anchor', 'middle');
|
|
4714
|
+
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
4818
4715
|
svgYAxisLeft
|
|
4819
4716
|
.selectAll('.lib-axis-group-label')
|
|
4820
4717
|
.style('font-size', 'smaller')
|
|
4821
4718
|
.text(metaData.yLabel);
|
|
4822
4719
|
}
|
|
4823
4720
|
else {
|
|
4721
|
+
/**
|
|
4722
|
+
* used by weekly charts
|
|
4723
|
+
*/
|
|
4824
4724
|
svg
|
|
4825
4725
|
.selectAll('.lib-axis-group-label')
|
|
4826
4726
|
.attr('class', 'lib-ylabel-weeklyCharts')
|
|
4827
4727
|
.text(metaData.yLabel.toLowerCase());
|
|
4828
4728
|
}
|
|
4829
4729
|
}
|
|
4730
|
+
if (metaData.xLabel) {
|
|
4731
|
+
function isAcronym(label) {
|
|
4732
|
+
return ((label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
4733
|
+
(label === label.toUpperCase() && /[A-Z]/.test(label)));
|
|
4734
|
+
}
|
|
4735
|
+
const xLabelText = metaData.xLabel;
|
|
4736
|
+
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|
|
4737
|
+
svg
|
|
4738
|
+
.append('text')
|
|
4739
|
+
.attr('class', function () {
|
|
4740
|
+
let baseClass = 'lib-axis-group-label font-size-1';
|
|
4741
|
+
if (self.chartConfiguration.isDrilldownChart)
|
|
4742
|
+
return baseClass + ' lib-xlabel-drilldowncharts';
|
|
4743
|
+
if (self.chartConfiguration.isMultiChartGridLine != undefined)
|
|
4744
|
+
return baseClass + ' lib-xlabel-weeklyCharts';
|
|
4745
|
+
return baseClass + ' lib-axis-waterfall-label';
|
|
4746
|
+
})
|
|
4747
|
+
.attr('style', self.chartConfiguration.xAxisCustomlabelStyles)
|
|
4748
|
+
.attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + 20) + ')')
|
|
4749
|
+
.style('text-anchor', 'middle')
|
|
4750
|
+
.style('fill', 'var(--chart-text-color)')
|
|
4751
|
+
.text(isAcr ? xLabelText.toUpperCase() : xLabelText.toLowerCase())
|
|
4752
|
+
.style('text-transform', isAcr ? 'none' : 'capitalize');
|
|
4753
|
+
}
|
|
4830
4754
|
if (this.chartData.targetLineData) {
|
|
4831
4755
|
const yZero = y(this.chartData.targetLineData.target);
|
|
4832
4756
|
svg
|
|
@@ -4880,36 +4804,10 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4880
4804
|
// .text(metaData.yLabel.toLowerCase());
|
|
4881
4805
|
svg.selectAll('g.x1.axis1 g.tick line').style('display', 'none');
|
|
4882
4806
|
}
|
|
4883
|
-
if (metaData.xLabel) {
|
|
4884
|
-
function isAcronym(label) {
|
|
4885
|
-
return ((label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
4886
|
-
(label === label.toUpperCase() && /[A-Z]/.test(label)));
|
|
4887
|
-
}
|
|
4888
|
-
const xLabelText = metaData.xLabel;
|
|
4889
|
-
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|
|
4890
|
-
const xPosition = isria ? (height + margin.top + margin.bottom) : (height + margin.top + margin.bottom + 10);
|
|
4891
|
-
svg
|
|
4892
|
-
.append('text')
|
|
4893
|
-
.attr('class', function () {
|
|
4894
|
-
let baseClass = 'lib-axis-group-label font-size-1';
|
|
4895
|
-
if (self.chartConfiguration.isDrilldownChart)
|
|
4896
|
-
return baseClass + ' lib-xlabel-drilldowncharts';
|
|
4897
|
-
if (self.chartConfiguration.isMultiChartGridLine != undefined)
|
|
4898
|
-
return baseClass + ' lib-xlabel-weeklyCharts';
|
|
4899
|
-
return baseClass + ' lib-axis-waterfall-label';
|
|
4900
|
-
})
|
|
4901
|
-
.attr('style', self.chartConfiguration.xAxisCustomlabelStyles)
|
|
4902
|
-
.attr('transform', 'translate(' + width / 2 + ' ,' + xPosition + ')')
|
|
4903
|
-
.style('text-anchor', 'middle')
|
|
4904
|
-
.style('fill', 'var(--chart-text-color)')
|
|
4905
|
-
.text(isAcr ? xLabelText.toUpperCase() : xLabelText.toLowerCase())
|
|
4906
|
-
.style('text-transform', isAcr ? 'none' : 'capitalize');
|
|
4907
|
-
}
|
|
4908
4807
|
if (metaData.lineyLabel) {
|
|
4909
4808
|
svgYAxisRight
|
|
4910
4809
|
.append('text')
|
|
4911
4810
|
.attr('class', 'lib-axis-group-label lib-line-axis')
|
|
4912
|
-
.attr('fill', 'var(--chart-text-color)')
|
|
4913
4811
|
.attr('style', self.chartConfiguration.yAxisCustomlabelStyles)
|
|
4914
4812
|
.attr('transform', 'translate(0,0) rotate(90)')
|
|
4915
4813
|
.attr('y', 0 - 100)
|
|
@@ -4958,13 +4856,12 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4958
4856
|
.attr('cy', function (d) {
|
|
4959
4857
|
return lineYscale(d.value);
|
|
4960
4858
|
})
|
|
4961
|
-
.style('cursor',
|
|
4859
|
+
.style('cursor', 'pointer')
|
|
4962
4860
|
.attr('r', 3);
|
|
4963
4861
|
if (self.chartConfiguration.lineGraphColor) {
|
|
4964
4862
|
dot
|
|
4965
4863
|
.append('text')
|
|
4966
4864
|
.attr('class', 'dot')
|
|
4967
|
-
.attr('fill', 'var(--chart-text-color)')
|
|
4968
4865
|
.attr('color', self.chartConfiguration.lineGraphColor)
|
|
4969
4866
|
.attr('style', 'font-size: ' + '.85em')
|
|
4970
4867
|
.attr('x', function (d, i) {
|
|
@@ -4999,11 +4896,11 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4999
4896
|
this.clickEvent.emit(event);
|
|
5000
4897
|
}
|
|
5001
4898
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5002
|
-
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]=\"chartConfiguration.backgroundColor\"\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-axis-group-label{font-size:.85em;font-weight:600;letter-spacing:0px;color:#000;opacity:1}.text-transform-uppercase{text-transform:uppercase!important}.text-transform-capitalize{text-transform:capitalize!important}.legend-holder-right{display:flex;justify-content:flex-end}.display-flex{display:flex}.legends-positioning-inline{display:flex;align-items:center;justify-content:center;margin-right:10px;margin-left:35px;font-size:18px;font-weight:700;letter-spacing:0px;color:#000;opacity:1}.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;margin-bottom:-10px;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-bar-name{color:var(--font-color)!important;font-size:17px;font-weight:700;text-transform:capitalize}.title-bar-value{color:var(--font-color)!important;font-size:14px}.title-bar-value>span{font-weight:600}.zoomIcons-holder{display:flex;align-items:center}.legends-latest{height:14px;width:14px;display:flex;margin-right:10px}.legend-latest-holder{font-size:12px;display:flex;justify-content:flex-start;align-items:center}.marginRight-30{margin-right:30px}.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}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}.marginLeft-20{margin-left:20px}.target-display{font-size:12px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.legend-style{font-weight:600;text-transform:capitalize}.bar-values{margin-top:10px}.bar-name{font-weight:600;margin-right:10px;text-transform:capitalize}.lib-chart-svg{margin-top:10px}.bar-value{height:29px;background-color:#f4f4f4;padding-left:15px;padding-right:15px;border-radius:8px;box-shadow:-2px 2px 10px #0000004d,2px 2px 10px #0000004d;font-weight:600}.mobile-xaxis-override{writing-mode:sideways-lr}@media (min-height: 900px){.legends-latest{height:17px;width:17px}}\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{background-color:#2e3640}.lib-chart-wrapper:hover .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 }); }
|
|
4899
|
+
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{background-color:#2e3640}.lib-chart-wrapper:hover .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 }); }
|
|
5003
4900
|
}
|
|
5004
4901
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: GroupChartComponent, decorators: [{
|
|
5005
4902
|
type: Component,
|
|
5006
|
-
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]=\"chartConfiguration.backgroundColor\"\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-axis-group-label{font-size:.85em;font-weight:600;letter-spacing:0px;color:#000;opacity:1}.text-transform-uppercase{text-transform:uppercase!important}.text-transform-capitalize{text-transform:capitalize!important}.legend-holder-right{display:flex;justify-content:flex-end}.display-flex{display:flex}.legends-positioning-inline{display:flex;align-items:center;justify-content:center;margin-right:10px;margin-left:35px;font-size:18px;font-weight:700;letter-spacing:0px;color:#000;opacity:1}.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;margin-bottom:-10px;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-bar-name{color:var(--font-color)!important;font-size:17px;font-weight:700;text-transform:capitalize}.title-bar-value{color:var(--font-color)!important;font-size:14px}.title-bar-value>span{font-weight:600}.zoomIcons-holder{display:flex;align-items:center}.legends-latest{height:14px;width:14px;display:flex;margin-right:10px}.legend-latest-holder{font-size:12px;display:flex;justify-content:flex-start;align-items:center}.marginRight-30{margin-right:30px}.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}.flex-inline{display:flex;justify-content:center;align-items:center;font-size:14px}.marginLeft-20{margin-left:20px}.target-display{font-size:12px;line-height:14.52px;font-weight:700;text-transform:uppercase;float:right}.legend-style{font-weight:600;text-transform:capitalize}.bar-values{margin-top:10px}.bar-name{font-weight:600;margin-right:10px;text-transform:capitalize}.lib-chart-svg{margin-top:10px}.bar-value{height:29px;background-color:#f4f4f4;padding-left:15px;padding-right:15px;border-radius:8px;box-shadow:-2px 2px 10px #0000004d,2px 2px 10px #0000004d;font-weight:600}.mobile-xaxis-override{writing-mode:sideways-lr}@media (min-height: 900px){.legends-latest{height:17px;width:17px}}\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{background-color:#2e3640}.lib-chart-wrapper:hover .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"] }]
|
|
4903
|
+
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{background-color:#2e3640}.lib-chart-wrapper:hover .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"] }]
|
|
5007
4904
|
}], ctorParameters: () => [], propDecorators: { containerElt: [{
|
|
5008
4905
|
type: ViewChild,
|
|
5009
4906
|
args: ['groupchartcontainer', { static: true }]
|