axidio-styleguide-library1-v2 0.3.69 → 0.3.70

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.
@@ -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(70,${margin.top})`);
6670
+ .attr('transform', `translate(79,${margin.top})`);
6671
6671
  // Right Y-axis - Fixed
6672
6672
  const rightAxisContainer = chartWrapper
6673
6673
  .append('div')
@@ -7008,29 +7008,30 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7008
7008
  }
7009
7009
  return `${baseClass} lib-axis-waterfall-label`;
7010
7010
  }
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
- }
7011
+ renderGridsFromLeftAxis(svgMain, svgYAxisLeft, scales, dimensions) {
7012
+ if (!this.chartConfiguration.yAxisGrid)
7013
+ return;
7014
+ // We want horizontal grid lines to span the full visible width:
7015
+ // the inner SVG (requiredSvgWidth) plus the right axis width.
7016
+ const gridSpan = dimensions.requiredSvgWidth + this.CONSTANTS.RIGHT_SVG_WIDTH;
7017
+ // Append the grid to the main (inner) SVG so lines are rendered across the scrollable area.
7018
+ svgMain
7019
+ .append('g')
7020
+ .attr('class', 'grid horizontal-grid-from-left')
7021
+ .attr('transform', 'translate(0,0)')
7022
+ .call(d3
7023
+ .axisLeft(scales.yScale)
7024
+ .ticks(this.chartConfiguration.numberOfYTicks)
7025
+ .tickSize(-gridSpan)
7026
+ .tickFormat(''))
7027
+ .style('color', 'var(--chart-grid-color)')
7028
+ .style('opacity', '1')
7029
+ .call((g) => {
7030
+ g.select('.domain').remove();
7031
+ g.selectAll('.tick line')
7032
+ .style('stroke', 'var(--chart-grid-color)')
7033
+ .style('stroke-width', '1px');
7034
+ });
7034
7035
  }
7035
7036
  applyConfigurationFlags() {
7036
7037
  if (this.chartConfiguration.isHeaderVisible !== undefined) {
@@ -7066,7 +7067,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
7066
7067
  data.sort((a, b) => b.total - a.total);
7067
7068
  const scales = this.createScales(data, layers, lineData, dimensions);
7068
7069
  const axes = this.createAxes(scales);
7069
- this.renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions);
7070
+ this.renderGridsFromLeftAxis(svg, svgYAxisLeft, scales, dimensions);
7070
7071
  this.renderGrids(svg, scales, dimensions);
7071
7072
  const rect = this.renderBars(svg, layers, scales, metaData, dimensions);
7072
7073
  this.renderAxes(svg, svgYAxisLeft, svgYAxisRight, axes, scales, dimensions, data);