axidio-styleguide-library1-v2 0.0.904 → 0.0.906
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/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +6 -5
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +1 -5
- package/fesm2022/axidio-styleguide-library1-v2.mjs +5 -8
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7378,9 +7378,10 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7378
7378
|
innerContainer.style('overflow-x', 'auto');
|
|
7379
7379
|
}
|
|
7380
7380
|
else {
|
|
7381
|
-
|
|
7381
|
+
// Force bar width to a maximum of 80px for normal (zoom-in) view
|
|
7382
|
+
barWidth = Math.min(80, Math.max(24, (width - rightSvgWidth - leftAndRightSpaces * 2) / data.length));
|
|
7382
7383
|
barPadding = 0;
|
|
7383
|
-
requiredSvgWidth =
|
|
7384
|
+
requiredSvgWidth = data.length * barWidth + leftAndRightSpaces * 2 + rightSvgWidth;
|
|
7384
7385
|
}
|
|
7385
7386
|
var svg = innerContainer
|
|
7386
7387
|
.append('svg')
|
|
@@ -7592,12 +7593,12 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7592
7593
|
return 0;
|
|
7593
7594
|
})
|
|
7594
7595
|
.attr('width', function (d) {
|
|
7595
|
-
// Use calculated barWidth for mobile, otherwise
|
|
7596
|
+
// Use calculated barWidth for mobile, otherwise force to 80px max for normal view
|
|
7596
7597
|
if (isMobile) {
|
|
7597
7598
|
return barWidth;
|
|
7598
7599
|
}
|
|
7599
7600
|
return self.chartConfiguration.isMultiChartGridLine == undefined
|
|
7600
|
-
?
|
|
7601
|
+
? barWidth
|
|
7601
7602
|
: self.chartConfiguration.isDrilldownChart &&
|
|
7602
7603
|
self.chartData.data.length <= 3
|
|
7603
7604
|
? 70
|
|
@@ -8811,10 +8812,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8811
8812
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8812
8813
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8813
8814
|
}
|
|
8814
|
-
if (isria && self.chartData.data.length > 8) {
|
|
8815
|
-
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8816
|
-
return firstPart.substring(0, 4).toLowerCase();
|
|
8817
|
-
}
|
|
8818
8815
|
data.map((indiv) => {
|
|
8819
8816
|
if (indiv.name.toLowerCase() == d.trim().toLowerCase() &&
|
|
8820
8817
|
indiv[metaData.keyList[0]] == -1) {
|