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