axidio-styleguide-library1-v2 0.3.46 → 0.3.47

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,21 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7010
7010
  }
7011
7011
  renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions) {
7012
7012
  if (this.chartConfiguration.yAxisGrid) {
7013
- const gridWidth = dimensions.containerWidth - 80;
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;
7014
7016
  svgYAxisLeft
7015
7017
  .append('g')
7016
7018
  .attr('class', 'grid horizontal-grid-from-left')
7017
- .attr('transform', 'translate(0,0)')
7018
- .call(d3
7019
- .axisLeft(scales.yScale)
7019
+ .attr('transform', 'translate(0, 0)')
7020
+ .call(d3.axisLeft(scales.yScale)
7020
7021
  .ticks(this.chartConfiguration.numberOfYTicks)
7021
- .tickSize(-gridWidth) // Negative to extend right
7022
- .tickFormat(''))
7022
+ .tickSize(-gridWidth) // Negative tick size to extend horizontally
7023
+ .tickFormat(() => ''))
7023
7024
  .style('color', 'var(--chart-grid-color)')
7024
- .style('opacity', '1')
7025
- .call((g) => {
7026
- g.select('.domain').remove();
7027
- g.selectAll('.tick line')
7028
- .style('stroke', 'var(--chart-grid-color)')
7029
- .style('stroke-width', '1px');
7030
- });
7025
+ .style('opacity', 1)
7026
+ .call(g => g.select('.domain').remove()) // Remove domain line
7027
+ .call(g => g.selectAll('.tick line').style('stroke', 'var(--chart-grid-color)').style('stroke-width', '1px'));
7031
7028
  }
7032
7029
  }
7033
7030
  applyConfigurationFlags() {