axidio-styleguide-library1-v2 0.4.65 → 0.4.67

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.
@@ -7871,14 +7871,17 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7871
7871
  // RIA + single subgroup → remove domain
7872
7872
  if (isria && (subgroups.length > 1 && self.chartData.data.length === 1)) {
7873
7873
  g.select('.domain').remove();
7874
- // Increase domain line length
7875
- const extra = 20; // increase by 20px on right
7876
- const originalWidth = x.range()[1];
7877
- const domain = g.select('.domain');
7878
- domain.attr('d', `M0,0 H${originalWidth + extra}`);
7879
- domain.attr('transform', 'translate(-10,0)');
7880
7874
  return;
7881
7875
  }
7876
+ const domain = g.select('.domain');
7877
+ // Get current range and extend it
7878
+ const startX = x.range()[0];
7879
+ const endX = x.range()[1];
7880
+ const extension = 30; // pixels to extend
7881
+ // Set new domain path with extended length
7882
+ domain.attr('d', `M${startX},0.5H${endX + extension}`);
7883
+ domain.attr('transform', 'translate(-30,0)');
7884
+ ;
7882
7885
  // Default behavior
7883
7886
  if (!isria) {
7884
7887
  g.select('.domain').remove();