axidio-styleguide-library1-v2 0.3.46 → 0.3.48
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.
|
@@ -7010,24 +7010,20 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7010
7010
|
}
|
|
7011
7011
|
renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions) {
|
|
7012
7012
|
if (this.chartConfiguration.yAxisGrid) {
|
|
7013
|
-
|
|
7013
|
+
// Ensure full grid length by not subtracting the left axis width
|
|
7014
|
+
const gridWidth = dimensions.requiredSvgWidth; // This uses the real chart width
|
|
7014
7015
|
svgYAxisLeft
|
|
7015
7016
|
.append('g')
|
|
7016
7017
|
.attr('class', 'grid horizontal-grid-from-left')
|
|
7017
|
-
.attr('transform', 'translate(0,0)')
|
|
7018
|
-
.call(d3
|
|
7019
|
-
.axisLeft(scales.yScale)
|
|
7018
|
+
.attr('transform', 'translate(0, 0)')
|
|
7019
|
+
.call(d3.axisLeft(scales.yScale)
|
|
7020
7020
|
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
7021
|
-
.tickSize(-gridWidth)
|
|
7022
|
-
.tickFormat(''))
|
|
7021
|
+
.tickSize(-gridWidth)
|
|
7022
|
+
.tickFormat(() => ''))
|
|
7023
7023
|
.style('color', 'var(--chart-grid-color)')
|
|
7024
|
-
.style('opacity',
|
|
7025
|
-
.call(
|
|
7026
|
-
g.
|
|
7027
|
-
g.selectAll('.tick line')
|
|
7028
|
-
.style('stroke', 'var(--chart-grid-color)')
|
|
7029
|
-
.style('stroke-width', '1px');
|
|
7030
|
-
});
|
|
7024
|
+
.style('opacity', 1)
|
|
7025
|
+
.call(g => g.select('.domain').remove())
|
|
7026
|
+
.call(g => g.selectAll('.tick line').style('stroke', 'var(--chart-grid-color)').style('stroke-width', '1px'));
|
|
7031
7027
|
}
|
|
7032
7028
|
}
|
|
7033
7029
|
applyConfigurationFlags() {
|