axidio-styleguide-library1-v2 0.0.827 → 0.0.829
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.
|
@@ -8568,7 +8568,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8568
8568
|
parseInt(verticalstackedcontainer.style('height')) -
|
|
8569
8569
|
margin.top -
|
|
8570
8570
|
margin.bottom -
|
|
8571
|
-
|
|
8571
|
+
100;
|
|
8572
8572
|
}
|
|
8573
8573
|
/**
|
|
8574
8574
|
* for hiding header
|
|
@@ -8654,7 +8654,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8654
8654
|
.scaleBand()
|
|
8655
8655
|
.rangeRound([width, 0])
|
|
8656
8656
|
.align(0.5)
|
|
8657
|
-
.padding([0.
|
|
8657
|
+
.padding([0.5])
|
|
8658
8658
|
.domain(data.map(function (d) {
|
|
8659
8659
|
return d.name.toLowerCase();
|
|
8660
8660
|
}));
|
|
@@ -8761,10 +8761,10 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8761
8761
|
svg
|
|
8762
8762
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8763
8763
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8764
|
-
.attr('y', short_tick_length_bg)
|
|
8764
|
+
.attr('y', this.isHeaderVisible ? short_tick_length_bg + 45 : short_tick_length_bg)
|
|
8765
8765
|
.text(function (d) {
|
|
8766
8766
|
var isValueToBeIgnored = false;
|
|
8767
|
-
if (isMobile) {
|
|
8767
|
+
if (isMobile && !self.isHeaderVisible) {
|
|
8768
8768
|
let firstPart = d.split(/[\s\-]+/)[0];
|
|
8769
8769
|
return firstPart.substring(0, 3).toLowerCase();
|
|
8770
8770
|
}
|
|
@@ -9604,30 +9604,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9604
9604
|
.style('font-size', 'smaller')
|
|
9605
9605
|
.text(metaData.lineyLabel);
|
|
9606
9606
|
}
|
|
9607
|
-
if (metaData.xLabel) {
|
|
9608
|
-
function isAcronym(label) {
|
|
9609
|
-
return (label.length <= 4 && /^[A-Z]+$/.test(label)) || (label === label.toUpperCase() && /[A-Z]/.test(label));
|
|
9610
|
-
}
|
|
9611
|
-
const xLabelText = metaData.xLabel;
|
|
9612
|
-
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|
|
9613
|
-
svg
|
|
9614
|
-
.append('text')
|
|
9615
|
-
.attr('class', function () {
|
|
9616
|
-
let baseClass = 'lib-axis-group-label';
|
|
9617
|
-
if (self.chartConfiguration.isDrilldownChart)
|
|
9618
|
-
return baseClass + ' lib-xlabel-drilldowncharts';
|
|
9619
|
-
if (self.chartConfiguration.isMultiChartGridLine != undefined)
|
|
9620
|
-
return baseClass + ' lib-xlabel-weeklyCharts';
|
|
9621
|
-
return baseClass + ' lib-axis-waterfall-label font-size-1';
|
|
9622
|
-
})
|
|
9623
|
-
.attr('style', self.chartConfiguration.xAxisCustomlabelStyles)
|
|
9624
|
-
.attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + 40) + ')')
|
|
9625
|
-
.style('text-anchor', 'middle')
|
|
9626
|
-
.style('fill', 'var(--chart-text-color)')
|
|
9627
|
-
.style('color', 'var(--chart-text-color)')
|
|
9628
|
-
.text(isAcr ? xLabelText.toUpperCase() : xLabelText.toLowerCase())
|
|
9629
|
-
.style('text-transform', isAcr ? 'none' : 'capitalize');
|
|
9630
|
-
}
|
|
9631
9607
|
if (lineData) {
|
|
9632
9608
|
svg
|
|
9633
9609
|
.append('path')
|