axidio-styleguide-library1-v2 0.0.826 → 0.0.828
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.
|
@@ -8697,7 +8697,8 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8697
8697
|
svg
|
|
8698
8698
|
.selectAll('g.x1.axis1 g.tick text')
|
|
8699
8699
|
.attr('class', 'lib-xaxis-labels-texts-drilldown')
|
|
8700
|
-
.style('fill', 'var(--chart-text-color)')
|
|
8700
|
+
.style('fill', 'var(--chart-text-color)')
|
|
8701
|
+
.attr('y', this.isHeaderVisible ? 45 : 0);
|
|
8701
8702
|
// .attr('y', function () {
|
|
8702
8703
|
// if (alternate_text) {
|
|
8703
8704
|
// alternate_text = false;
|
|
@@ -8984,15 +8985,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8984
8985
|
if (self.chartData.data.length == 1) {
|
|
8985
8986
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
8986
8987
|
tempScale.range([
|
|
8987
|
-
0 + (x.bandwidth() -
|
|
8988
|
-
x.bandwidth() - (x.bandwidth() -
|
|
8988
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
8989
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
8989
8990
|
]);
|
|
8990
8991
|
// .padding(0.05);
|
|
8991
8992
|
}
|
|
8992
8993
|
else
|
|
8993
8994
|
tempScale.range([
|
|
8994
|
-
0 + (x.bandwidth() -
|
|
8995
|
-
x.bandwidth() - (x.bandwidth() -
|
|
8995
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
8996
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
8996
8997
|
]);
|
|
8997
8998
|
// .padding(0.05);
|
|
8998
8999
|
}
|
|
@@ -9035,15 +9036,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9035
9036
|
if (self.chartData.data.length == 1) {
|
|
9036
9037
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9037
9038
|
tempScale.range([
|
|
9038
|
-
0 + (x.bandwidth() -
|
|
9039
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9039
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
9040
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9040
9041
|
]);
|
|
9041
9042
|
// .padding(0.05);
|
|
9042
9043
|
}
|
|
9043
9044
|
else
|
|
9044
9045
|
tempScale.range([
|
|
9045
|
-
0 + (x.bandwidth() -
|
|
9046
|
-
x.bandwidth() - (x.bandwidth() -
|
|
9046
|
+
0 + (x.bandwidth() - 200) / 2,
|
|
9047
|
+
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9047
9048
|
]);
|
|
9048
9049
|
// .padding(0.05);
|
|
9049
9050
|
}
|
|
@@ -9604,30 +9605,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9604
9605
|
.style('font-size', 'smaller')
|
|
9605
9606
|
.text(metaData.lineyLabel);
|
|
9606
9607
|
}
|
|
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 font-size-1';
|
|
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';
|
|
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
9608
|
if (lineData) {
|
|
9632
9609
|
svg
|
|
9633
9610
|
.append('path')
|