axidio-styleguide-library1-v2 0.0.959 → 0.0.961
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.
|
@@ -3833,13 +3833,20 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3833
3833
|
? this.chartConfiguration.svgHeight
|
|
3834
3834
|
: parseInt(verticalstackedcontainer.style('height'));
|
|
3835
3835
|
}
|
|
3836
|
-
if (this.chartConfiguration.isDrilldownChart) {
|
|
3836
|
+
if (this.chartConfiguration.isDrilldownChart && !this.isHeaderVisible) {
|
|
3837
3837
|
height =
|
|
3838
3838
|
parseInt(verticalstackedcontainer.style('height')) -
|
|
3839
3839
|
margin.top -
|
|
3840
3840
|
margin.bottom -
|
|
3841
3841
|
130;
|
|
3842
3842
|
}
|
|
3843
|
+
if (this.chartConfiguration.isHeaderVisible) {
|
|
3844
|
+
height =
|
|
3845
|
+
parseInt(verticalstackedcontainer.style('height')) -
|
|
3846
|
+
margin.top -
|
|
3847
|
+
margin.bottom -
|
|
3848
|
+
100;
|
|
3849
|
+
}
|
|
3843
3850
|
/**
|
|
3844
3851
|
* for hiding header
|
|
3845
3852
|
* used by weekly charts
|
|
@@ -4433,13 +4440,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4433
4440
|
.on('mouseout', handleMouseOut)
|
|
4434
4441
|
.on('mouseover', handleMouseOver);
|
|
4435
4442
|
}
|
|
4436
|
-
if (this.chartConfiguration.displayTitleOnTop
|
|
4443
|
+
if (this.chartConfiguration.displayTitleOnTop || (this.chartConfiguration.textsOnBar == undefined &&
|
|
4444
|
+
this.chartConfiguration.displayTitleOnTop == undefined)) {
|
|
4437
4445
|
state
|
|
4438
4446
|
.selectAll('rect')
|
|
4439
4447
|
.on('mouseout', handleMouseOut)
|
|
4440
4448
|
.on('mouseover', handleMouseOver);
|
|
4441
4449
|
}
|
|
4442
4450
|
function handleMouseOver(d, i) {
|
|
4451
|
+
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
4443
4452
|
svg
|
|
4444
4453
|
.append('foreignObject')
|
|
4445
4454
|
.attr('x', function () {
|
|
@@ -4563,57 +4572,8 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4563
4572
|
});
|
|
4564
4573
|
}
|
|
4565
4574
|
function handleMouseOut(d, i) {
|
|
4566
|
-
if (!self.chartConfiguration.displayTitleOnTop) {
|
|
4567
|
-
return;
|
|
4568
|
-
}
|
|
4569
4575
|
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
4570
4576
|
}
|
|
4571
|
-
/**
|
|
4572
|
-
* display data values on mouse over
|
|
4573
|
-
* used by dashboard charts
|
|
4574
|
-
*/
|
|
4575
|
-
if (this.chartConfiguration.textsOnBar == undefined &&
|
|
4576
|
-
this.chartConfiguration.displayTitleOnTop == undefined) {
|
|
4577
|
-
state
|
|
4578
|
-
.selectAll('rect')
|
|
4579
|
-
.on('mouseout', function (d) {
|
|
4580
|
-
state.selectAll('.barstext').remove();
|
|
4581
|
-
})
|
|
4582
|
-
.on('mouseover', function (d1) {
|
|
4583
|
-
state
|
|
4584
|
-
.selectAll('text')
|
|
4585
|
-
.data(function (d) {
|
|
4586
|
-
let newList = [];
|
|
4587
|
-
subgroups.map(function (key) {
|
|
4588
|
-
if (key !== 'name' &&
|
|
4589
|
-
d1.key == key &&
|
|
4590
|
-
d1.value == d[key] &&
|
|
4591
|
-
d1.name == d.name) {
|
|
4592
|
-
let obj = { key: key, value: d[key], name: d.name };
|
|
4593
|
-
newList.push(obj);
|
|
4594
|
-
}
|
|
4595
|
-
});
|
|
4596
|
-
return newList;
|
|
4597
|
-
})
|
|
4598
|
-
.enter()
|
|
4599
|
-
.append('text')
|
|
4600
|
-
.attr('class', 'barstext')
|
|
4601
|
-
.attr('x', function (d) {
|
|
4602
|
-
return xSubgroup(d.key);
|
|
4603
|
-
})
|
|
4604
|
-
.attr('y', function (d) {
|
|
4605
|
-
return y(d.value);
|
|
4606
|
-
})
|
|
4607
|
-
.attr('style', 'font-size: ' + '.85em' + ';' + ' font-weight:' + 'bold' + ';')
|
|
4608
|
-
.style('fill', function (d) {
|
|
4609
|
-
return metaData.colors[d.key];
|
|
4610
|
-
})
|
|
4611
|
-
.attr('width', xSubgroup.bandwidth())
|
|
4612
|
-
.text(function (d) {
|
|
4613
|
-
return d.value;
|
|
4614
|
-
});
|
|
4615
|
-
});
|
|
4616
|
-
}
|
|
4617
4577
|
svg
|
|
4618
4578
|
.append('g')
|
|
4619
4579
|
.attr('class', 'x2 axis2')
|
|
@@ -4630,6 +4590,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4630
4590
|
.call(y)
|
|
4631
4591
|
.style('display', 'none');
|
|
4632
4592
|
svgYAxisLeft
|
|
4593
|
+
.append('g')
|
|
4633
4594
|
.append('g')
|
|
4634
4595
|
.attr('class', 'lib-yaxis-labels-texts-drilldown yaxis-dashed')
|
|
4635
4596
|
.attr('style', self.chartConfiguration.yAxisCustomTextStyles)
|