axidio-styleguide-library1-v2 0.4.1 → 0.4.3
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.
|
@@ -7803,7 +7803,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7803
7803
|
})
|
|
7804
7804
|
.call((g) => {
|
|
7805
7805
|
// Increase spacing between axis and labels
|
|
7806
|
-
if (isria && (subgroups.length === 1
|
|
7806
|
+
if (isria && (subgroups.length === 1 || self.chartData.data.length > 1)) {
|
|
7807
7807
|
g.selectAll('.tick text')
|
|
7808
7808
|
.attr('dy', '1em'); // Default is '0.71em', increase for more space
|
|
7809
7809
|
}
|
|
@@ -7866,10 +7866,10 @@ 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
|
-
if (isria && self.chartData.data.length
|
|
7869
|
+
if (isria && self.chartData.data.length >= 2) {
|
|
7870
7870
|
svg.selectAll('g.x1.axis1 g.tick text')
|
|
7871
7871
|
.classed('mobile-xaxis-override', true)
|
|
7872
|
-
.text((d) => d.substring(0, 3))
|
|
7872
|
+
.text((d) => d.substring(0, 3).toLowerCase())
|
|
7873
7873
|
.style('font-size', '12px')
|
|
7874
7874
|
.attr('y', 5)
|
|
7875
7875
|
.attr('x', 5)
|