axidio-styleguide-library1-v2 0.3.31 → 0.3.32
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,27 +7902,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7902
7902
|
textNodes.classed('mobile-xaxis-override', true);
|
|
7903
7903
|
}
|
|
7904
7904
|
}
|
|
7905
|
-
// Tablet: if any tick text contains exactly 3 tspans, move the 3rd tspan to its own new line
|
|
7906
|
-
if (isTablet) {
|
|
7907
|
-
const tickTexts = svg.selectAll('g.x1.axis1 g.tick text');
|
|
7908
|
-
tickTexts.each(function () {
|
|
7909
|
-
const textEl = d3.select(this);
|
|
7910
|
-
const tspans = textEl.selectAll('tspan').nodes();
|
|
7911
|
-
try {
|
|
7912
|
-
if (tspans && tspans.length === 3) {
|
|
7913
|
-
// ensure each tspan has x=0 and proper dy to stack as three lines
|
|
7914
|
-
d3.select(tspans[0]).attr('x', 0).attr('dy', '0em');
|
|
7915
|
-
d3.select(tspans[1]).attr('x', 0).attr('dy', '1.1em');
|
|
7916
|
-
d3.select(tspans[2]).attr('x', 0).attr('dy', '1.1em');
|
|
7917
|
-
// push the whole label down a bit to avoid overlap with axis
|
|
7918
|
-
textEl.attr('y', 30);
|
|
7919
|
-
}
|
|
7920
|
-
}
|
|
7921
|
-
catch (e) {
|
|
7922
|
-
// ignore any measurement/DOM errors
|
|
7923
|
-
}
|
|
7924
|
-
});
|
|
7925
|
-
}
|
|
7926
7905
|
}
|
|
7927
7906
|
applyXLabelsOnSameLine(svg, subgroups, data, metaData, self, shortTickLengthBg, isMobile, isria) {
|
|
7928
7907
|
const xAxisLabels = svg.selectAll('g.x1.axis1 g.tick text')
|