axidio-styleguide-library1-v2 0.1.1 → 0.1.3

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.
@@ -8787,9 +8787,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8787
8787
  if (subgroups.length > 1 && data.length > 8 && metaData.xLabel) {
8788
8788
  // In maximized (fullscreen) view, keep the gap minimal but add space
8789
8789
  if (self.chartConfiguration.isFullScreen) {
8790
- return short_tick_length_bg + 15;
8790
+ return short_tick_length_bg + 3;
8791
8791
  }
8792
- return short_tick_length_bg + 15;
8792
+ return short_tick_length_bg + 3;
8793
8793
  }
8794
8794
  // For grouped bar charts with many bars and NO xLabel, add space as before, but reduce in fullscreen
8795
8795
  if (subgroups.length > 1 && data.length > 8 && !metaData.xLabel) {
@@ -9096,7 +9096,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9096
9096
  })
9097
9097
  .attr('x', function (d) {
9098
9098
  if (self.chartConfiguration.isDrilldownChart) {
9099
- data.map((indiv) => {
9099
+ data.map((indiv, idx) => {
9100
9100
  if (indiv.name == d.name) {
9101
9101
  let keys = Object.keys(indiv).filter((temp, i) => i != 0);
9102
9102
  tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
@@ -9127,8 +9127,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
9127
9127
  }
9128
9128
  }
9129
9129
  });
9130
+ // Decrease x value by 10 for the first bar only in grouped charts in zoom-in view
9131
+ if (subgroups.length > 1 && !self.isZoomedOut && self.chartData.data.length > 1 && d.name === self.chartData.data[0].name && d.key === subgroups[0]) {
9132
+ return tempScale(d.key) - 10;
9133
+ }
9130
9134
  return tempScale(d.key);
9131
9135
  }
9136
+ // For non-drilldown grouped charts, decrease x value by 10 for first bar only in zoom-in view
9137
+ if (subgroups.length > 1 && !self.isZoomedOut && self.chartData.data.length > 1 && d.name === self.chartData.data[0].name && d.key === subgroups[0]) {
9138
+ return xSubgroup(d.key) - 10;
9139
+ }
9132
9140
  return xSubgroup(d.key);
9133
9141
  })
9134
9142
  .attr('y', function (d) {