axidio-styleguide-library1-v2 0.4.32 → 0.4.34
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.
|
@@ -7758,7 +7758,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7758
7758
|
this.renderAxisLabels(svg, svgYAxisLeft, svgYAxisRight, metaData, width, height, margin, self, isria, RIGHT_SVG_WIDTH);
|
|
7759
7759
|
// ==================== TARGET LINE ====================
|
|
7760
7760
|
if (this.chartData.targetLineData) {
|
|
7761
|
-
this.renderTargetLine(svg, svgYAxisRight, y, width, RIGHT_SVG_WIDTH, metaData, self);
|
|
7761
|
+
this.renderTargetLine(svg, svgYAxisRight, y, width, RIGHT_SVG_WIDTH, metaData, self, isria);
|
|
7762
7762
|
}
|
|
7763
7763
|
// ==================== LINE CHART ====================
|
|
7764
7764
|
if (lineData) {
|
|
@@ -8565,11 +8565,12 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8565
8565
|
}
|
|
8566
8566
|
return baseClass + ' lib-axis-waterfall-label';
|
|
8567
8567
|
}
|
|
8568
|
-
renderTargetLine(svg, svgYAxisRight, y, width, rightSvgWidth, metaData, self) {
|
|
8568
|
+
renderTargetLine(svg, svgYAxisRight, y, width, rightSvgWidth, metaData, self, isria) {
|
|
8569
8569
|
const yZero = y(this.chartData.targetLineData.target);
|
|
8570
8570
|
// Draw target line
|
|
8571
8571
|
svg.append('line')
|
|
8572
|
-
.attr('x1', 20)
|
|
8572
|
+
// .attr('x1', 20)
|
|
8573
|
+
.attr('x1', isria ? 0 : 20)
|
|
8573
8574
|
.attr('x2', width)
|
|
8574
8575
|
.attr('y1', yZero)
|
|
8575
8576
|
.attr('y2', yZero)
|
|
@@ -8578,7 +8579,6 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8578
8579
|
// Add target label
|
|
8579
8580
|
const dataTypeTemp = metaData.dataType || '';
|
|
8580
8581
|
const targetLineName = this.chartData.targetLineData.targetName || 'target';
|
|
8581
|
-
const isria = this.customChartConfiguration.isRia;
|
|
8582
8582
|
svgYAxisRight.append('foreignObject')
|
|
8583
8583
|
.attr('transform', `translate(0,${yZero - 30})`)
|
|
8584
8584
|
.attr('width', rightSvgWidth)
|
|
@@ -8734,7 +8734,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8734
8734
|
.style('height', height)
|
|
8735
8735
|
.style('overflow', 'visible') // Allow overflow to show scrollbars
|
|
8736
8736
|
// .style('padding-left', `${margin.left}px`)
|
|
8737
|
-
.style('padding-left', `${isria ? margin.left + 18 : margin.left +
|
|
8737
|
+
.style('padding-left', `${isria ? margin.left + 18 : margin.left + 20}px`)
|
|
8738
8738
|
.style('padding-right', `${rightSvgWidth}px`)
|
|
8739
8739
|
.style('margin-left', '15px');
|
|
8740
8740
|
// Left Y-Axis
|