axidio-styleguide-library1-v2 0.3.69 → 0.3.71
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.
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +27 -26
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +2 -2
- package/fesm2022/axidio-styleguide-library1-v2.mjs +27 -26
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -6667,7 +6667,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
6667
6667
|
.attr('width', '80')
|
|
6668
6668
|
.attr('height', dimensions.height + margin.top + margin.bottom)
|
|
6669
6669
|
.append('g')
|
|
6670
|
-
.attr('transform', `translate(
|
|
6670
|
+
.attr('transform', `translate(79,${margin.top})`);
|
|
6671
6671
|
// Right Y-axis - Fixed
|
|
6672
6672
|
const rightAxisContainer = chartWrapper
|
|
6673
6673
|
.append('div')
|
|
@@ -7008,29 +7008,30 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7008
7008
|
}
|
|
7009
7009
|
return `${baseClass} lib-axis-waterfall-label`;
|
|
7010
7010
|
}
|
|
7011
|
-
renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions) {
|
|
7012
|
-
if (this.chartConfiguration.yAxisGrid)
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7033
|
-
|
|
7011
|
+
renderGridsFromLeftAxis(svgMain, svgYAxisLeft, scales, dimensions) {
|
|
7012
|
+
if (!this.chartConfiguration.yAxisGrid)
|
|
7013
|
+
return;
|
|
7014
|
+
// We want horizontal grid lines to span the full visible width:
|
|
7015
|
+
// the inner SVG (requiredSvgWidth) plus the right axis width.
|
|
7016
|
+
const gridSpan = dimensions.requiredSvgWidth + this.CONSTANTS.RIGHT_SVG_WIDTH;
|
|
7017
|
+
// Append the grid to the main (inner) SVG so lines are rendered across the scrollable area.
|
|
7018
|
+
svgMain
|
|
7019
|
+
.append('g')
|
|
7020
|
+
.attr('class', 'grid horizontal-grid-from-left')
|
|
7021
|
+
.attr('transform', 'translate(0,0)')
|
|
7022
|
+
.call(d3
|
|
7023
|
+
.axisLeft(scales.yScale)
|
|
7024
|
+
.ticks(this.chartConfiguration.numberOfYTicks)
|
|
7025
|
+
.tickSize(-gridSpan)
|
|
7026
|
+
.tickFormat(''))
|
|
7027
|
+
.style('color', 'var(--chart-grid-color)')
|
|
7028
|
+
.style('opacity', '1')
|
|
7029
|
+
.call((g) => {
|
|
7030
|
+
g.select('.domain').remove();
|
|
7031
|
+
g.selectAll('.tick line')
|
|
7032
|
+
.style('stroke', 'var(--chart-grid-color)')
|
|
7033
|
+
.style('stroke-width', '1px');
|
|
7034
|
+
});
|
|
7034
7035
|
}
|
|
7035
7036
|
applyConfigurationFlags() {
|
|
7036
7037
|
if (this.chartConfiguration.isHeaderVisible !== undefined) {
|
|
@@ -7066,7 +7067,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7066
7067
|
data.sort((a, b) => b.total - a.total);
|
|
7067
7068
|
const scales = this.createScales(data, layers, lineData, dimensions);
|
|
7068
7069
|
const axes = this.createAxes(scales);
|
|
7069
|
-
this.renderGridsFromLeftAxis(svgYAxisLeft, scales, dimensions);
|
|
7070
|
+
this.renderGridsFromLeftAxis(svg, svgYAxisLeft, scales, dimensions);
|
|
7070
7071
|
this.renderGrids(svg, scales, dimensions);
|
|
7071
7072
|
const rect = this.renderBars(svg, layers, scales, metaData, dimensions);
|
|
7072
7073
|
this.renderAxes(svg, svgYAxisLeft, svgYAxisRight, axes, scales, dimensions, data);
|
|
@@ -8671,7 +8672,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8671
8672
|
parseInt(verticalstackedcontainer.style('height')) -
|
|
8672
8673
|
margin.top -
|
|
8673
8674
|
margin.bottom -
|
|
8674
|
-
|
|
8675
|
+
100;
|
|
8675
8676
|
}
|
|
8676
8677
|
if (this.chartConfiguration.isHeaderVisible) {
|
|
8677
8678
|
height =
|