axidio-styleguide-library1-v2 0.0.922 → 0.0.923
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,10 +8728,20 @@ 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
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8731
|
+
// Only move x-axis labels further down for grouped charts if there is no xLabel
|
|
8732
|
+
if (subgroups.length > 1 && !metaData.xLabel) {
|
|
8733
|
+
svg
|
|
8734
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
8735
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8736
|
+
.style('fill', 'var(--chart-text-color)')
|
|
8737
|
+
.attr('y', 32); // Increase distance from bars (default is ~9)
|
|
8738
|
+
}
|
|
8739
|
+
else {
|
|
8740
|
+
svg
|
|
8741
|
+
.selectAll('g.x1.axis1 g.tick text')
|
|
8742
|
+
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8743
|
+
.style('fill', 'var(--chart-text-color)');
|
|
8744
|
+
}
|
|
8735
8745
|
// .attr('y', function () {
|
|
8736
8746
|
// if (alternate_text) {
|
|
8737
8747
|
// alternate_text = false;
|