axidio-styleguide-library1-v2 0.0.924 → 0.0.925
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.
|
@@ -8728,13 +8728,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8728
8728
|
.call(d3.axisBottom(x))
|
|
8729
8729
|
.call((g) => g.select('.domain').remove());
|
|
8730
8730
|
svg.selectAll('g.x1.axis1 g.tick line').remove();
|
|
8731
|
-
// Move x-axis label down only
|
|
8732
|
-
if (subgroups.length > 1
|
|
8733
|
-
|
|
8734
|
-
!metaData.xLabel) {
|
|
8731
|
+
// Move x-axis date label down only for grouped bar chart
|
|
8732
|
+
if (subgroups.length > 1 // grouped bar chart
|
|
8733
|
+
) {
|
|
8735
8734
|
svg
|
|
8736
8735
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8737
|
-
.each(function (d
|
|
8736
|
+
.each(function (d) {
|
|
8738
8737
|
// Check if label is a date (e.g., 08/04/25 or 2025-08-04)
|
|
8739
8738
|
if (/\d{2,4}[-\/]\d{2}[-\/]\d{2,4}/.test(d) || /\d{2,4}[-\/]\d{2,4}/.test(d)) {
|
|
8740
8739
|
d3.select(this)
|