axidio-styleguide-library1-v2 0.3.31 → 0.3.33
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.
|
@@ -7902,24 +7902,27 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7902
7902
|
textNodes.classed('mobile-xaxis-override', true);
|
|
7903
7903
|
}
|
|
7904
7904
|
}
|
|
7905
|
-
//
|
|
7905
|
+
// 💻 TABLET VIEW HANDLING
|
|
7906
7906
|
if (isTablet) {
|
|
7907
|
-
const
|
|
7908
|
-
|
|
7909
|
-
const
|
|
7910
|
-
const
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7907
|
+
const textNodes = svg.selectAll('g.x1.axis1 g.tick text');
|
|
7908
|
+
textNodes.each((d) => {
|
|
7909
|
+
const textElement = d3.select(this);
|
|
7910
|
+
const words = d.split(/\s+/);
|
|
7911
|
+
// Clear existing text
|
|
7912
|
+
textElement.text(null);
|
|
7913
|
+
// If more than 2 words, break into multiple lines using tspans
|
|
7914
|
+
if (words.length >= 3) {
|
|
7915
|
+
words.forEach((word, i) => {
|
|
7916
|
+
textElement
|
|
7917
|
+
.append('tspan')
|
|
7918
|
+
.text(word)
|
|
7919
|
+
.attr('x', 0)
|
|
7920
|
+
.attr('dy', i === 0 ? 0 : 12); // line spacing between words
|
|
7921
|
+
});
|
|
7920
7922
|
}
|
|
7921
|
-
|
|
7922
|
-
//
|
|
7923
|
+
else {
|
|
7924
|
+
// Keep normal text
|
|
7925
|
+
textElement.text(d);
|
|
7923
7926
|
}
|
|
7924
7927
|
});
|
|
7925
7928
|
}
|