axidio-styleguide-library1-v2 0.0.973 → 0.0.975
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 +5 -5
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +7 -6
- package/fesm2022/axidio-styleguide-library1-v2.mjs +10 -9
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4559,21 +4559,21 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
4559
4559
|
.html(function () {
|
|
4560
4560
|
let dataType = metaData.dataType ? metaData.dataType : '';
|
|
4561
4561
|
if (!self.isZoomedOut) {
|
|
4562
|
-
let desiredText = '<span class="title-bar-name">' + d.
|
|
4562
|
+
let desiredText = '<span class="title-bar-name">' + d.name + '</span>';
|
|
4563
4563
|
desiredText +=
|
|
4564
4564
|
'<span class="title-bar-value"><span>' +
|
|
4565
|
-
d.
|
|
4565
|
+
d.Value +
|
|
4566
4566
|
'</span>' +
|
|
4567
4567
|
dataType +
|
|
4568
4568
|
'</span>';
|
|
4569
4569
|
return desiredText;
|
|
4570
4570
|
}
|
|
4571
4571
|
else {
|
|
4572
|
-
let tempKey = d.
|
|
4572
|
+
let tempKey = d.name.length <= 8 ? d.name : d.name.substring(0, 5) + '...';
|
|
4573
4573
|
let desiredText = '<span class="title-bar-name">' +
|
|
4574
4574
|
tempKey +
|
|
4575
4575
|
':' +
|
|
4576
|
-
d.
|
|
4576
|
+
d.Value +
|
|
4577
4577
|
dataType +
|
|
4578
4578
|
'</span>';
|
|
4579
4579
|
desiredText +=
|
|
@@ -9008,15 +9008,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9008
9008
|
});
|
|
9009
9009
|
}
|
|
9010
9010
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
|
-
if (subgroups.length > 1
|
|
9011
|
+
if (!this.isZoomedOut && subgroups.length > 1) {
|
|
9012
9012
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth()]).padding(0.05);
|
|
9014
|
-
}
|
|
9015
|
-
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9016
9013
|
xSubgroup.range([0, x.bandwidth()]);
|
|
9017
9014
|
}
|
|
9015
|
+
else if (!this.isZoomedOut && subgroups.length === 1) {
|
|
9016
|
+
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9017
|
+
xSubgroup.range([0, 80]);
|
|
9018
|
+
}
|
|
9018
9019
|
else {
|
|
9019
|
-
//
|
|
9020
|
+
// All other cases (including zoomed-out), use full bandwidth
|
|
9020
9021
|
xSubgroup.range([0, x.bandwidth()]);
|
|
9021
9022
|
}
|
|
9022
9023
|
// if (this.chartConfiguration.isDrilldownChart) {
|