axidio-styleguide-library1-v2 0.3.11 → 0.3.13

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.
@@ -8601,18 +8601,22 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8601
8601
  if (label.indexOf('\n') > -1) {
8602
8602
  const lines = label.split('\n');
8603
8603
  text.text(null);
8604
+ // Increase spacing between lines to avoid overlap on tablet/mobile
8604
8605
  lines.forEach((line, idx) => {
8605
8606
  text.append('tspan')
8606
8607
  .text(line)
8607
8608
  .attr('x', 0)
8608
- .attr('dy', idx === 0 ? '1em' : '1.1em');
8609
+ // first line sits at baseline, following lines are spaced further down
8610
+ .attr('dy', idx === 0 ? '0em' : '1.2em');
8609
8611
  });
8612
+ // Push multi-line labels down from the axis to prevent clipping/overlap
8613
+ text.attr('y', 30);
8610
8614
  }
8611
8615
  else {
8612
8616
  const words = label.split(' ');
8613
8617
  text.text(null);
8614
8618
  words.forEach((word) => {
8615
- text.append('tspan').text(word);
8619
+ text.append('tspan').text(word).attr('x', 0).attr('dy', '0em');
8616
8620
  });
8617
8621
  }
8618
8622
  })