axidio-styleguide-library1-v2 0.2.77 → 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,${
|
|
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();
|