axidio-styleguide-library1-v2 0.2.76 → 0.2.78

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.
@@ -7790,9 +7790,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7790
7790
  let alternate_text = false;
7791
7791
  if (this.chartConfiguration.isMultiChartGridLine === undefined) {
7792
7792
  // Normal ticks for dashboard charts
7793
+ // Dynamically adjust Y translation for mobile
7794
+ let translateY = height;
7795
+ if (isMobile) {
7796
+ translateY = height + 16; // Add extra space at the top for mobile
7797
+ }
7793
7798
  svg.append('g')
7794
7799
  .attr('class', 'x1 axis1')
7795
- .attr('transform', `translate(0,${height})`)
7800
+ .attr('transform', `translate(0,${translateY})`)
7796
7801
  .call(d3.axisBottom(x))
7797
7802
  .call((g) => g.select('.domain').remove());
7798
7803
  svg.selectAll('g.x1.axis1 g.tick line').remove();
@@ -7957,10 +7962,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
7957
7962
  // Mobile handling: keep date labels intact for single-series charts (do not trim)
7958
7963
  if (isMobile) {
7959
7964
  const isDateLabel = /\d{2,4}[-\/]\d{1,2}[-\/]\d{1,4}/.test(d) || !isNaN(Date.parse(d));
7960
- if (isDateLabel && subgroups && subgroups.length < 3) {
7961
- // For single-series charts on mobile, show full date labels (no trimming)
7962
- return d;
7963
- }
7965
+ // if (isDateLabel && subgroups && subgroups.length < 3) {
7966
+ // // For single-series charts on mobile, show full date labels (no trimming)
7967
+ // return d;
7968
+ // }
7964
7969
  // If header is hidden (compact mobile), trim non-date labels as before
7965
7970
  if (!self.isHeaderVisible) {
7966
7971
  const firstPart = d.split(/[\s\-]+/)[0];