axidio-styleguide-library1-v2 0.0.980 → 0.0.981
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 +3 -5
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +5 -9
- package/fesm2022/axidio-styleguide-library1-v2.mjs +6 -12
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7387,20 +7387,18 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7387
7387
|
var xScale = d3
|
|
7388
7388
|
.scaleBand()
|
|
7389
7389
|
.rangeRound([
|
|
7390
|
+
width - rightSvgWidth - leftAndRightSpaces,
|
|
7390
7391
|
leftAndRightSpaces,
|
|
7391
|
-
width - rightSvgWidth - leftAndRightSpaces
|
|
7392
7392
|
])
|
|
7393
7393
|
.domain(data.map(function (d) {
|
|
7394
7394
|
return d.name;
|
|
7395
|
-
}))
|
|
7396
|
-
.padding(isMobile ? 0.2 : 0.5);
|
|
7395
|
+
}));
|
|
7397
7396
|
var xScaleFromOrigin = d3
|
|
7398
7397
|
.scaleBand()
|
|
7399
7398
|
.rangeRound([width - rightSvgWidth, 0])
|
|
7400
7399
|
.domain(data.map(function (d) {
|
|
7401
7400
|
return d.name;
|
|
7402
7401
|
}));
|
|
7403
|
-
// ...existing code...
|
|
7404
7402
|
/**
|
|
7405
7403
|
* draw second x axis on top
|
|
7406
7404
|
*/
|
|
@@ -8642,7 +8640,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8642
8640
|
.append('svg')
|
|
8643
8641
|
// .attr('id', self.uniqueId)
|
|
8644
8642
|
.attr('width', width - rightSvgWidth)
|
|
8645
|
-
.attr('height', height + margin.top + margin.bottom +
|
|
8643
|
+
.attr('height', height + margin.top + margin.bottom + 30)
|
|
8646
8644
|
// .call(ChartHelper.responsivefy)
|
|
8647
8645
|
.append('g')
|
|
8648
8646
|
.attr('transform', 'translate(' + 0 + ',' + margin.top + ')');
|
|
@@ -9010,11 +9008,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9010
9008
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
9009
|
if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9012
9010
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth()]);
|
|
9014
|
-
}
|
|
9015
|
-
else if (subgroups.length === 1 && !this.isZoomedOut) {
|
|
9016
|
-
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9017
|
-
xSubgroup.range([0, 80]);
|
|
9011
|
+
xSubgroup.range([0, x.bandwidth()]).padding(0.05);
|
|
9018
9012
|
}
|
|
9019
9013
|
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9020
9014
|
xSubgroup.range([0, x.bandwidth()]);
|
|
@@ -9160,13 +9154,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9160
9154
|
return self.isZoomedOut
|
|
9161
9155
|
? tempScale.bandwidth()
|
|
9162
9156
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9163
|
-
? tempScale.bandwidth()
|
|
9157
|
+
? tempScale.bandwidth() * 0.5
|
|
9164
9158
|
: tempScale.bandwidth();
|
|
9165
9159
|
}
|
|
9166
9160
|
return self.isZoomedOut
|
|
9167
9161
|
? tempScale.bandwidth()
|
|
9168
9162
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9169
|
-
? tempScale.bandwidth()
|
|
9163
|
+
? tempScale.bandwidth() * 0.5
|
|
9170
9164
|
: tempScale.bandwidth();
|
|
9171
9165
|
})
|
|
9172
9166
|
.attr('height', function (d) {
|