axidio-styleguide-library1-v2 0.0.978 → 0.0.979
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 +8 -13
- package/fesm2022/axidio-styleguide-library1-v2.mjs +10 -15
- 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
|
-
data.sort(function (a, b) {
|
|
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
|
|
@@ -8551,7 +8551,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8551
8551
|
var height = parseInt(verticalstackedcontainer.style('height')) *
|
|
8552
8552
|
(self.chartConfiguration.svgHeight / 100) -
|
|
8553
8553
|
margin.top -
|
|
8554
|
-
margin.bottom
|
|
8554
|
+
margin.bottom;
|
|
8555
8555
|
/**
|
|
8556
8556
|
* entire height used in weekly charts as x axis needed to be displayed at the bottom of the chart
|
|
8557
8557
|
*/
|
|
@@ -9008,20 +9008,15 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9008
9008
|
});
|
|
9009
9009
|
}
|
|
9010
9010
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
|
-
|
|
9012
|
-
if (subgroups.length > 1 && this.chartConfiguration.isMultiChartGridLine) {
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth() * 1.2]).padding(0.05);
|
|
9014
|
-
}
|
|
9015
|
-
else if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9011
|
+
if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9016
9012
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9017
9013
|
xSubgroup.range([0, x.bandwidth()]).padding(0.05);
|
|
9018
9014
|
}
|
|
9019
|
-
else if (
|
|
9020
|
-
|
|
9021
|
-
xSubgroup.range([0, 80]);
|
|
9015
|
+
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9016
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
9022
9017
|
}
|
|
9023
9018
|
else {
|
|
9024
|
-
//
|
|
9019
|
+
// used to make grouped bars with lesser width as we are not using padding for width
|
|
9025
9020
|
xSubgroup.range([0, x.bandwidth()]);
|
|
9026
9021
|
}
|
|
9027
9022
|
// if (this.chartConfiguration.isDrilldownChart) {
|
|
@@ -9161,13 +9156,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9161
9156
|
return self.isZoomedOut
|
|
9162
9157
|
? tempScale.bandwidth()
|
|
9163
9158
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9164
|
-
? tempScale.bandwidth()
|
|
9159
|
+
? tempScale.bandwidth() * 0.5
|
|
9165
9160
|
: tempScale.bandwidth();
|
|
9166
9161
|
}
|
|
9167
9162
|
return self.isZoomedOut
|
|
9168
9163
|
? tempScale.bandwidth()
|
|
9169
9164
|
: self.chartData.data.length && self.chartData.data.length > 8
|
|
9170
|
-
? tempScale.bandwidth()
|
|
9165
|
+
? tempScale.bandwidth() * 0.5
|
|
9171
9166
|
: tempScale.bandwidth();
|
|
9172
9167
|
})
|
|
9173
9168
|
.attr('height', function (d) {
|