axidio-styleguide-library1-v2 0.0.979 → 0.0.980
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 +4 -4
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +9 -5
- package/fesm2022/axidio-styleguide-library1-v2.mjs +11 -7
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7367,9 +7367,9 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7367
7367
|
/*.order(d3.stackOrder)*/
|
|
7368
7368
|
.offset(d3.stackOffsetNone);
|
|
7369
7369
|
var layers = stack(data);
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7370
|
+
data.sort(function (a, b) {
|
|
7371
|
+
return b.total - a.total;
|
|
7372
|
+
});
|
|
7373
7373
|
let lineYscale;
|
|
7374
7374
|
if (lineData != null) {
|
|
7375
7375
|
lineYscale = d3
|
|
@@ -8642,7 +8642,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8642
8642
|
.append('svg')
|
|
8643
8643
|
// .attr('id', self.uniqueId)
|
|
8644
8644
|
.attr('width', width - rightSvgWidth)
|
|
8645
|
-
.attr('height', height + margin.top + margin.bottom +
|
|
8645
|
+
.attr('height', height + margin.top + margin.bottom + 60)
|
|
8646
8646
|
// .call(ChartHelper.responsivefy)
|
|
8647
8647
|
.append('g')
|
|
8648
8648
|
.attr('transform', 'translate(' + 0 + ',' + margin.top + ')');
|
|
@@ -9010,7 +9010,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9010
9010
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
9011
|
if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9012
9012
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth()])
|
|
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]);
|
|
9014
9018
|
}
|
|
9015
9019
|
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9016
9020
|
xSubgroup.range([0, x.bandwidth()]);
|
|
@@ -9156,13 +9160,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9156
9160
|
return self.isZoomedOut
|
|
9157
9161
|
? tempScale.bandwidth()
|
|
9158
9162
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9159
|
-
? tempScale.bandwidth()
|
|
9163
|
+
? tempScale.bandwidth()
|
|
9160
9164
|
: tempScale.bandwidth();
|
|
9161
9165
|
}
|
|
9162
9166
|
return self.isZoomedOut
|
|
9163
9167
|
? tempScale.bandwidth()
|
|
9164
9168
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9165
|
-
? tempScale.bandwidth()
|
|
9169
|
+
? tempScale.bandwidth()
|
|
9166
9170
|
: tempScale.bandwidth();
|
|
9167
9171
|
})
|
|
9168
9172
|
.attr('height', function (d) {
|