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.
@@ -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(79,${margin.top})`);
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(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
- });
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(svg, svgYAxisLeft, scales, dimensions);
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 + 5; // Add extra space at the top for mobile
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')