axidio-styleguide-library1-v2 0.0.947 → 0.0.949
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.
|
@@ -8836,7 +8836,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8836
8836
|
})
|
|
8837
8837
|
.text(function (d) {
|
|
8838
8838
|
var isValueToBeIgnored = false;
|
|
8839
|
-
if (isMobile && !self.isHeaderVisible) {
|
|
8839
|
+
if ((isMobile && !self.isHeaderVisible) || (isria && self.chartData.data.length > 8)) {
|
|
8840
8840
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8841
8841
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8842
8842
|
}
|
|
@@ -8892,7 +8892,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8892
8892
|
});
|
|
8893
8893
|
}
|
|
8894
8894
|
}
|
|
8895
|
-
if (isMobile && !
|
|
8895
|
+
if ((isMobile && !self.isHeaderVisible) || (isria && self.chartData.data.length > 8)) {
|
|
8896
8896
|
svg
|
|
8897
8897
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8898
8898
|
.classed('mobile-xaxis-override', true);
|
|
@@ -9297,10 +9297,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9297
9297
|
.on('mouseout', handleMouseOut)
|
|
9298
9298
|
.on('mouseover', handleMouseOver);
|
|
9299
9299
|
}
|
|
9300
|
-
|
|
9301
|
-
(this.chartConfiguration.textsOnBar === undefined &&
|
|
9302
|
-
this.chartConfiguration.displayTitleOnTop === undefined);
|
|
9303
|
-
if (shouldBindMouseEvents) {
|
|
9300
|
+
if (this.chartConfiguration.displayTitleOnTop) {
|
|
9304
9301
|
state
|
|
9305
9302
|
.selectAll('rect')
|
|
9306
9303
|
.on('mouseout', handleMouseOut)
|
|
@@ -9422,6 +9419,49 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9422
9419
|
* display data values on mouse over
|
|
9423
9420
|
* used by dashboard charts
|
|
9424
9421
|
*/
|
|
9422
|
+
if (this.chartConfiguration.textsOnBar == undefined &&
|
|
9423
|
+
this.chartConfiguration.displayTitleOnTop == undefined) {
|
|
9424
|
+
state
|
|
9425
|
+
.selectAll('rect')
|
|
9426
|
+
.on('mouseout', function (d) {
|
|
9427
|
+
state.selectAll('.barstext').remove();
|
|
9428
|
+
})
|
|
9429
|
+
.on('mouseover', function (d1) {
|
|
9430
|
+
state
|
|
9431
|
+
.selectAll('text')
|
|
9432
|
+
.data(function (d) {
|
|
9433
|
+
let newList = [];
|
|
9434
|
+
subgroups.map(function (key) {
|
|
9435
|
+
if (key !== 'name' &&
|
|
9436
|
+
d1.key == key &&
|
|
9437
|
+
d1.value == d[key] &&
|
|
9438
|
+
d1.name == d.name) {
|
|
9439
|
+
let obj = { key: key, value: d[key], name: d.name };
|
|
9440
|
+
newList.push(obj);
|
|
9441
|
+
}
|
|
9442
|
+
});
|
|
9443
|
+
return newList;
|
|
9444
|
+
})
|
|
9445
|
+
.enter()
|
|
9446
|
+
.append('text')
|
|
9447
|
+
.attr('fill', 'var(--chart-text-color)')
|
|
9448
|
+
.attr('class', 'barstext')
|
|
9449
|
+
.attr('x', function (d) {
|
|
9450
|
+
return xSubgroup(d.key);
|
|
9451
|
+
})
|
|
9452
|
+
.attr('y', function (d) {
|
|
9453
|
+
return y(d.value);
|
|
9454
|
+
})
|
|
9455
|
+
.attr('style', 'font-size: ' + '.85em' + ';' + ' font-weight:' + 'bold' + ';')
|
|
9456
|
+
.style('fill', function (d) {
|
|
9457
|
+
return metaData.colors[d.key];
|
|
9458
|
+
})
|
|
9459
|
+
.attr('width', self.isZoomedOut ? xSubgroup.bandwidth() : xSubgroup.bandwidth())
|
|
9460
|
+
.text(function (d) {
|
|
9461
|
+
return d.value;
|
|
9462
|
+
});
|
|
9463
|
+
});
|
|
9464
|
+
}
|
|
9425
9465
|
svg
|
|
9426
9466
|
.append('g')
|
|
9427
9467
|
.attr('class', 'x2 axis2')
|