axidio-styleguide-library1-v2 0.0.973 → 0.0.976
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 +8 -4
- package/fesm2022/axidio-styleguide-library1-v2.mjs +11 -7
- 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 +=
|
|
@@ -9010,7 +9010,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9010
9010
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
9011
|
if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9012
9012
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth()])
|
|
9013
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
9014
|
+
}
|
|
9015
|
+
else if (subgroups.length === 1 && !this.isZoomedOut) {
|
|
9016
|
+
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9017
|
+
xSubgroup.range([0, 80]);
|
|
9014
9018
|
}
|
|
9015
9019
|
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9016
9020
|
xSubgroup.range([0, x.bandwidth()]);
|
|
@@ -9156,13 +9160,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9156
9160
|
return self.isZoomedOut
|
|
9157
9161
|
? tempScale.bandwidth()
|
|
9158
9162
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9159
|
-
? tempScale.bandwidth()
|
|
9163
|
+
? tempScale.bandwidth()
|
|
9160
9164
|
: tempScale.bandwidth();
|
|
9161
9165
|
}
|
|
9162
9166
|
return self.isZoomedOut
|
|
9163
9167
|
? tempScale.bandwidth()
|
|
9164
9168
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9165
|
-
? tempScale.bandwidth()
|
|
9169
|
+
? tempScale.bandwidth()
|
|
9166
9170
|
: tempScale.bandwidth();
|
|
9167
9171
|
})
|
|
9168
9172
|
.attr('height', function (d) {
|