axidio-styleguide-library1-v2 0.0.923 → 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,25 @@ 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
|
-
//
|
|
8732
|
-
if (subgroups.length > 1
|
|
8731
|
+
// Move x-axis date label down only for grouped bar chart
|
|
8732
|
+
if (subgroups.length > 1 // grouped bar chart
|
|
8733
|
+
) {
|
|
8733
8734
|
svg
|
|
8734
8735
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8735
|
-
.
|
|
8736
|
-
.
|
|
8737
|
-
|
|
8736
|
+
.each(function (d) {
|
|
8737
|
+
// Check if label is a date (e.g., 08/04/25 or 2025-08-04)
|
|
8738
|
+
if (/\d{2,4}[-\/]\d{2}[-\/]\d{2,4}/.test(d) || /\d{2,4}[-\/]\d{2,4}/.test(d)) {
|
|
8739
|
+
d3.select(this)
|
|
8740
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8741
|
+
.style('fill', 'var(--chart-text-color)')
|
|
8742
|
+
.attr('y', 32); // Move date label down
|
|
8743
|
+
}
|
|
8744
|
+
else {
|
|
8745
|
+
d3.select(this)
|
|
8746
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8747
|
+
.style('fill', 'var(--chart-text-color)');
|
|
8748
|
+
}
|
|
8749
|
+
});
|
|
8738
8750
|
}
|
|
8739
8751
|
else {
|
|
8740
8752
|
svg
|