axidio-styleguide-library1-v2 0.3.61 → 0.3.62
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 +26 -27
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +2 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs +26 -27
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6667,7 +6667,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6667
6667
|
.attr('width', '80')
|
|
6668
6668
|
.attr('height', dimensions.height + margin.top + margin.bottom)
|
|
6669
6669
|
.append('g')
|
|
6670
|
-
.attr('transform', `translate(
|
|
6670
|
+
.attr('transform', `translate(70,${margin.top})`);
|
|
6671
6671
|
// Right Y-axis - Fixed
|
|
6672
6672
|
const rightAxisContainer = chartWrapper
|
|
6673
6673
|
.append('div')
|
|
@@ -7008,30 +7008,29 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
return `${baseClass} lib-axis-waterfall-label`;
|
|
7010
7010
|
}
|
|
7011
|
-
renderGridsFromLeftAxis(
|
|
7012
|
-
if (
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7034
|
-
});
|
|
7011
|
+
renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions) {
|
|
7012
|
+
if (this.chartConfiguration.yAxisGrid) {
|
|
7013
|
+
// Calculate how far the grid lines need to extend
|
|
7014
|
+
// They start from the left Y-axis (at x=80) and go to the full width
|
|
7015
|
+
const gridWidth = dimensions.requiredSvgWidth + 80 + this.CONSTANTS.RIGHT_SVG_WIDTH;
|
|
7016
|
+
svgYAxisLeft
|
|
7017
|
+
.append('g')
|
|
7018
|
+
.attr('class', 'grid horizontal-grid-from-left')
|
|
7019
|
+
.attr('transform', 'translate(0,0)')
|
|
7020
|
+
.call(d3
|
|
7021
|
+
.axisLeft(scales.yScale)
|
|
7022
|
+
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
7023
|
+
.tickSize(-gridWidth) // Negative to extend right
|
|
7024
|
+
.tickFormat(''))
|
|
7025
|
+
.style('color', 'var(--chart-grid-color)')
|
|
7026
|
+
.style('opacity', '1')
|
|
7027
|
+
.call((g) => {
|
|
7028
|
+
g.select('.domain').remove();
|
|
7029
|
+
g.selectAll('.tick line')
|
|
7030
|
+
.style('stroke', 'var(--chart-grid-color)')
|
|
7031
|
+
.style('stroke-width', '1px');
|
|
7032
|
+
});
|
|
7033
|
+
}
|
|
7035
7034
|
}
|
|
7036
7035
|
applyConfigurationFlags() {
|
|
7037
7036
|
if (this.chartConfiguration.isHeaderVisible !== undefined) {
|
|
@@ -7067,7 +7066,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7067
7066
|
data.sort((a, b) => b.total - a.total);
|
|
7068
7067
|
const scales = this.createScales(data, layers, lineData, dimensions);
|
|
7069
7068
|
const axes = this.createAxes(scales);
|
|
7070
|
-
this.renderGridsFromLeftAxis(
|
|
7069
|
+
this.renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions);
|
|
7071
7070
|
this.renderGrids(svg, scales, dimensions);
|
|
7072
7071
|
const rect = this.renderBars(svg, layers, scales, metaData, dimensions);
|
|
7073
7072
|
this.renderAxes(svg, svgYAxisLeft, svgYAxisRight, axes, scales, dimensions, data);
|
|
@@ -7777,7 +7776,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7777
7776
|
// Dynamically adjust Y translation for mobile
|
|
7778
7777
|
let translateY = height;
|
|
7779
7778
|
if (isMobile) {
|
|
7780
|
-
translateY = height +
|
|
7779
|
+
translateY = height + 15; // Add extra space at the top for mobile
|
|
7781
7780
|
}
|
|
7782
7781
|
svg.append('g')
|
|
7783
7782
|
.attr('class', 'x1 axis1')
|