axidio-styleguide-library1-v2 0.0.976 → 0.0.977
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.
|
@@ -9008,19 +9008,20 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9008
9008
|
});
|
|
9009
9009
|
}
|
|
9010
9010
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9011
|
-
|
|
9011
|
+
// Weekly shipped/planned daily grouped chart: increase bar width for both zoom-in and zoom-out views
|
|
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) {
|
|
9012
9016
|
// For grouped bar charts in zoom-in view, reduce padding between bars
|
|
9013
|
-
xSubgroup.range([0, x.bandwidth()]);
|
|
9017
|
+
xSubgroup.range([0, x.bandwidth()]).padding(0.05);
|
|
9014
9018
|
}
|
|
9015
9019
|
else if (subgroups.length === 1 && !this.isZoomedOut) {
|
|
9016
9020
|
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9017
9021
|
xSubgroup.range([0, 80]);
|
|
9018
9022
|
}
|
|
9019
|
-
else if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
9020
|
-
xSubgroup.range([0, x.bandwidth()]);
|
|
9021
|
-
}
|
|
9022
9023
|
else {
|
|
9023
|
-
//
|
|
9024
|
+
// All other cases (including zoomed-out), use full bandwidth
|
|
9024
9025
|
xSubgroup.range([0, x.bandwidth()]);
|
|
9025
9026
|
}
|
|
9026
9027
|
// if (this.chartConfiguration.isDrilldownChart) {
|