axidio-styleguide-library1-v2 0.4.5 → 0.4.7
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.
|
@@ -7866,35 +7866,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7866
7866
|
this.applyXLabelsOnSameLine(svg, subgroups, data, metaData, self, shortTickLengthBg, isMobile, isria);
|
|
7867
7867
|
}
|
|
7868
7868
|
// Mobile override for RIA
|
|
7869
|
-
|
|
7870
|
-
// svg.selectAll('g.x1.axis1 g.tick text')
|
|
7871
|
-
// .classed('mobile-xaxis-override', true)
|
|
7872
|
-
// // .text((d: string) => d.substring(0, 3))
|
|
7873
|
-
// .text((d: string) => d.substring(0, 4).toLowerCase())
|
|
7874
|
-
// .style('font-size', '12px')
|
|
7875
|
-
// .attr('y', 5)
|
|
7876
|
-
// .attr('x', 5)
|
|
7877
|
-
// .style('text-anchor', 'middle');
|
|
7878
|
-
// }
|
|
7879
|
-
if (isria && self.chartData.data.length >= 2) {
|
|
7869
|
+
if (isria && self.chartData.data.length >= 3) {
|
|
7880
7870
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7881
|
-
.
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
// Only apply class if it has special characters
|
|
7885
|
-
textElement.classed('mobile-xaxis-override', hasSpecialChars);
|
|
7886
|
-
// if (hasSpecialChars) {
|
|
7887
|
-
// // Apply truncation for text with special chars
|
|
7888
|
-
// textElement.text(d.substring(0, 4).toLowerCase());
|
|
7889
|
-
// } else {
|
|
7890
|
-
// // Keep full text for simple strings
|
|
7891
|
-
// textElement.text(d.toLowerCase());
|
|
7892
|
-
// }
|
|
7893
|
-
})
|
|
7871
|
+
.classed('mobile-xaxis-override', true)
|
|
7872
|
+
// .text((d: string) => d.substring(0, 3))
|
|
7873
|
+
.text((d) => d.substring(0, 4).toLowerCase())
|
|
7894
7874
|
.style('font-size', '12px')
|
|
7895
7875
|
.attr('y', 5)
|
|
7896
7876
|
.attr('x', 5)
|
|
7897
|
-
.
|
|
7877
|
+
.style('text-anchor', 'middle');
|
|
7898
7878
|
}
|
|
7899
7879
|
// ✅ Tablet View — Rotate if text > 10 characters
|
|
7900
7880
|
if (isTablet) {
|
|
@@ -8522,7 +8502,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8522
8502
|
.attr('transform', 'rotate(-90)')
|
|
8523
8503
|
.attr('y', yPosition)
|
|
8524
8504
|
.attr('x', 0 - height / 2)
|
|
8525
|
-
.attr('dy', '
|
|
8505
|
+
.attr('dy', '0.5em')
|
|
8526
8506
|
.style('text-anchor', 'middle')
|
|
8527
8507
|
.attr('fill', 'var(--chart-text-color)');
|
|
8528
8508
|
if (this.chartConfiguration.isMultiChartGridLine === undefined) {
|