axidio-styleguide-library1-v2 0.0.868 → 0.0.870
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.
|
@@ -8160,11 +8160,12 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8160
8160
|
svgYAxisLeft
|
|
8161
8161
|
.append('text')
|
|
8162
8162
|
.attr('class', function () {
|
|
8163
|
+
let baseClass = 'lib-axis-group-label font-size-1';
|
|
8163
8164
|
if (self.chartConfiguration.isDrilldownChart)
|
|
8164
|
-
return 'lib-ylabel-drilldowncharts';
|
|
8165
|
+
return baseClass + ' lib-ylabel-drilldowncharts';
|
|
8165
8166
|
if (self.chartConfiguration.isMultiChartGridLine != undefined)
|
|
8166
|
-
return 'lib-ylabel-weeklyCharts';
|
|
8167
|
-
return 'lib-axis-
|
|
8167
|
+
return baseClass + ' lib-ylabel-weeklyCharts';
|
|
8168
|
+
return baseClass + ' lib-axis-waterfall-label';
|
|
8168
8169
|
})
|
|
8169
8170
|
.attr('style', self.chartConfiguration.yAxisCustomlabelStyles)
|
|
8170
8171
|
.attr('transform', 'rotate(-90)')
|
|
@@ -8238,21 +8239,23 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8238
8239
|
}
|
|
8239
8240
|
if (metaData.xLabel) {
|
|
8240
8241
|
function isAcronym(label) {
|
|
8241
|
-
return (label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
8242
|
+
return ((label.length <= 4 && /^[A-Z]+$/.test(label)) ||
|
|
8243
|
+
(label === label.toUpperCase() && /[A-Z]/.test(label)));
|
|
8242
8244
|
}
|
|
8243
8245
|
const xLabelText = metaData.xLabel;
|
|
8244
8246
|
const isAcr = isAcronym(xLabelText.replace(/[^A-Za-z]/g, ''));
|
|
8245
8247
|
svg
|
|
8246
8248
|
.append('text')
|
|
8247
8249
|
.attr('class', function () {
|
|
8250
|
+
let baseClass = 'lib-axis-group-label font-size-1';
|
|
8248
8251
|
if (self.chartConfiguration.isDrilldownChart)
|
|
8249
|
-
return 'lib-xlabel-drilldowncharts';
|
|
8252
|
+
return baseClass + ' lib-xlabel-drilldowncharts';
|
|
8250
8253
|
if (self.chartConfiguration.isMultiChartGridLine != undefined)
|
|
8251
|
-
return 'lib-xlabel-weeklyCharts';
|
|
8252
|
-
return 'lib-axis-waterfall-label
|
|
8254
|
+
return baseClass + ' lib-xlabel-weeklyCharts';
|
|
8255
|
+
return baseClass + ' lib-axis-waterfall-label';
|
|
8253
8256
|
})
|
|
8254
8257
|
.attr('style', self.chartConfiguration.xAxisCustomlabelStyles)
|
|
8255
|
-
.attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + margin.bottom) + ')')
|
|
8258
|
+
.attr('transform', 'translate(' + width / 2 + ' ,' + (height + margin.top + margin.bottom + 10) + ')')
|
|
8256
8259
|
.style('text-anchor', 'middle')
|
|
8257
8260
|
.style('fill', 'var(--chart-text-color)')
|
|
8258
8261
|
.style('color', 'var(--chart-text-color)')
|