axidio-styleguide-library1-v2 0.6.72 → 0.6.73
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.
|
@@ -6744,7 +6744,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6744
6744
|
barPadding = 30;
|
|
6745
6745
|
}
|
|
6746
6746
|
else {
|
|
6747
|
-
barWidth =
|
|
6747
|
+
barWidth = 40;
|
|
6748
6748
|
barPadding = 50;
|
|
6749
6749
|
}
|
|
6750
6750
|
}
|
|
@@ -6754,7 +6754,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6754
6754
|
}
|
|
6755
6755
|
const totalBarsWidth = barWidth * dataLength;
|
|
6756
6756
|
const totalGaps = barPadding * (dataLength - 1);
|
|
6757
|
-
const minRequiredWidth = totalBarsWidth + totalGaps;
|
|
6757
|
+
const minRequiredWidth = totalBarsWidth + totalGaps + (this.CONSTANTS.LEFT_RIGHT_SPACES * 2);
|
|
6758
6758
|
const requiredSvgWidth = Math.max(availableWidth, minRequiredWidth);
|
|
6759
6759
|
return {
|
|
6760
6760
|
width,
|
|
@@ -6864,7 +6864,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6864
6864
|
.rangeRound([0, dimensions.requiredSvgWidth])
|
|
6865
6865
|
.domain(data.map(d => d.name).reverse())
|
|
6866
6866
|
.paddingInner(paddingRatio)
|
|
6867
|
-
.paddingOuter(0.
|
|
6867
|
+
.paddingOuter(0.1) // Small padding for visual spacing
|
|
6868
6868
|
.align(0.5);
|
|
6869
6869
|
const xScaleFromOrigin = d3
|
|
6870
6870
|
.scaleBand()
|
|
@@ -7057,7 +7057,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7057
7057
|
return xScale(d.data.name) - this.CONSTANTS.LEFT_RIGHT_SPACES +
|
|
7058
7058
|
(bandwidth + this.CONSTANTS.LEFT_RIGHT_SPACES * 2 - 180) / 2;
|
|
7059
7059
|
}
|
|
7060
|
-
return xScale(d.data.name)
|
|
7060
|
+
return xScale(d.data.name) - this.CONSTANTS.LEFT_RIGHT_SPACES;
|
|
7061
7061
|
}
|
|
7062
7062
|
generateTooltipHtml(d, metaData, value) {
|
|
7063
7063
|
if (value === 0)
|
|
@@ -7279,7 +7279,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7279
7279
|
.select('.domain')
|
|
7280
7280
|
.style('stroke', 'var(--chart-axis-color)')
|
|
7281
7281
|
.style('stroke-width', '1px')
|
|
7282
|
-
.attr('d', `M0,0.5H${
|
|
7282
|
+
.attr('d', `M0,0.5H${dimensions.requiredSvgWidth}`);
|
|
7283
7283
|
// Y-axis
|
|
7284
7284
|
svg
|
|
7285
7285
|
.append('g')
|