axidio-styleguide-library1-v2 0.0.781 → 0.0.782

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.
@@ -8765,15 +8765,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
8765
8765
  });
8766
8766
  svg
8767
8767
  .selectAll('g.x1.axis1 g.tick')
8768
- .append('text')
8769
- .attr('class', 'lib-xaxis-labels-texts-drilldown')
8770
- .attr('y', long_tick_length_bg)
8771
- .attr('fill', 'var(--chart-text-color)')
8772
- .text(function (d) {
8773
- if (d.trim().indexOf(' ') > -1) {
8774
- return d.trim().substring(d.indexOf(' '), d.length).toLowerCase();
8768
+ .each((d) => {
8769
+ // Only append second <text> for non-date labels
8770
+ if (!/\d{2,4}[-\/]/.test(d) && d.trim().indexOf(' ') > -1) {
8771
+ d3.select(this)
8772
+ .append('text')
8773
+ .attr('class', 'lib-xaxis-labels-texts-drilldown')
8774
+ .attr('y', long_tick_length_bg)
8775
+ .attr('fill', 'var(--chart-text-color)')
8776
+ .text(d.trim().substring(d.indexOf(' '), d.length).toLowerCase());
8775
8777
  }
8776
- return '';
8777
8778
  });
8778
8779
  }
8779
8780
  /**y scale for left y axis */