axidio-styleguide-library1-v2 0.0.958 → 0.0.960
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 +4 -51
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +1 -4
- package/fesm2022/axidio-styleguide-library1-v2.mjs +3 -53
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4433,13 +4433,15 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4433
4433
|
.on('mouseout', handleMouseOut)
|
|
4434
4434
|
.on('mouseover', handleMouseOver);
|
|
4435
4435
|
}
|
|
4436
|
-
if (this.chartConfiguration.displayTitleOnTop
|
|
4436
|
+
if (this.chartConfiguration.displayTitleOnTop || (this.chartConfiguration.textsOnBar == undefined &&
|
|
4437
|
+
this.chartConfiguration.displayTitleOnTop == undefined)) {
|
|
4437
4438
|
state
|
|
4438
4439
|
.selectAll('rect')
|
|
4439
4440
|
.on('mouseout', handleMouseOut)
|
|
4440
4441
|
.on('mouseover', handleMouseOver);
|
|
4441
4442
|
}
|
|
4442
4443
|
function handleMouseOver(d, i) {
|
|
4444
|
+
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
4443
4445
|
svg
|
|
4444
4446
|
.append('foreignObject')
|
|
4445
4447
|
.attr('x', function () {
|
|
@@ -4563,57 +4565,8 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4563
4565
|
});
|
|
4564
4566
|
}
|
|
4565
4567
|
function handleMouseOut(d, i) {
|
|
4566
|
-
if (!self.chartConfiguration.displayTitleOnTop) {
|
|
4567
|
-
return;
|
|
4568
|
-
}
|
|
4569
4568
|
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
4570
4569
|
}
|
|
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
4570
|
svg
|
|
4618
4571
|
.append('g')
|
|
4619
4572
|
.attr('class', 'x2 axis2')
|
|
@@ -9441,9 +9394,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9441
9394
|
});
|
|
9442
9395
|
}
|
|
9443
9396
|
function handleMouseOut(d, i) {
|
|
9444
|
-
if (!self.chartConfiguration.displayTitleOnTop) {
|
|
9445
|
-
return;
|
|
9446
|
-
}
|
|
9447
9397
|
svg.selectAll('.lib-verticalstack-title-ontop').remove();
|
|
9448
9398
|
}
|
|
9449
9399
|
svg
|