axidio-styleguide-library1-v2 0.1.99 → 0.2.1

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.
@@ -8603,7 +8603,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8603
8603
  })
8604
8604
  .attr('x', function (d) {
8605
8605
  if (self.chartData.data.length > 8 && !self.isZoomedOut) {
8606
- return 1; // Move first line text slightly to the left in zoom-in view for better alignment
8606
+ return -25; // Move first line text slightly to the left too
8607
8607
  }
8608
8608
  return 0; // Default position
8609
8609
  })
@@ -8691,7 +8691,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8691
8691
  .attr('fill', 'var(--chart-text-color)')
8692
8692
  .attr('x', function (d) {
8693
8693
  if (self.chartData.data.length > 8 && !self.isZoomedOut) {
8694
- return 1; // Move text slightly to the left
8694
+ return -25; // Move text slightly to the left
8695
8695
  }
8696
8696
  return 0; // Default position
8697
8697
  })
@@ -8832,7 +8832,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8832
8832
  }
8833
8833
  var xSubgroup = d3.scaleBand().domain(subgroups);
8834
8834
  if (subgroups.length > 1 && !this.isZoomedOut) {
8835
- // For grouped bar charts in zoom-in view, use full x.bandwidth() for subgroups
8835
+ // For grouped bar charts in zoom-in view, reduce padding between bars
8836
8836
  xSubgroup.range([0, x.bandwidth()]);
8837
8837
  }
8838
8838
  else if (subgroups.length === 1 && !this.isZoomedOut) {
@@ -8939,9 +8939,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8939
8939
  return y(0);
8940
8940
  })
8941
8941
  .attr('width', function (d) {
8942
- // For grouped bar charts in zoom-in view, set bar width to 50 for maximum thickness
8942
+ // For grouped bar charts in zoom-in view, slightly increase bar width for both bars (shipped and planned)
8943
8943
  if (subgroups.length > 1 && !self.isZoomedOut) {
8944
- return 50;
8944
+ return xSubgroup.bandwidth() * 0.25;
8945
8945
  }
8946
8946
  // For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
8947
8947
  if (subgroups.length === 1 && !self.isZoomedOut) {
@@ -9005,7 +9005,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9005
9005
  return height - y(0);
9006
9006
  })
9007
9007
  .style('cursor', function (d) {
9008
- if (metaData.hasDrillDown && !isria)
9008
+ if (metaData.hasDrillDown && !isria && !metaData.barWithoutClick)
9009
9009
  return 'pointer';
9010
9010
  else
9011
9011
  return 'default';