axidio-styleguide-library1-v2 0.0.915 → 0.0.916
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.
|
@@ -8694,18 +8694,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8694
8694
|
}));
|
|
8695
8695
|
}
|
|
8696
8696
|
else {
|
|
8697
|
-
// For normal drill down chart, increase padding to reduce bar width, but do not change x-axis label formatting
|
|
8698
|
-
let barPadding = 0.5; // Increased padding for thinner bars
|
|
8699
|
-
if (this.isZoomedOut || (this.chartData.data.length > 8 && !this.isZoomedOut) || this.chartConfiguration.isMultiChartGridLine !== undefined) {
|
|
8700
|
-
// Use default padding for zoomed in/out and other chart types
|
|
8701
|
-
barPadding = 0.3;
|
|
8702
|
-
}
|
|
8703
8697
|
x = d3
|
|
8704
8698
|
.scaleBand()
|
|
8705
8699
|
.domain(groups)
|
|
8706
8700
|
.range([leftAndRightSpaces, width - rightSvgWidth - leftAndRightSpaces])
|
|
8707
|
-
.padding([
|
|
8708
|
-
// No changes to x-axis label formatting below, keep original logic
|
|
8701
|
+
.padding([0.3]);
|
|
8709
8702
|
}
|
|
8710
8703
|
// x.bandwidth(96);
|
|
8711
8704
|
var xScaleFromOrigin = d3
|
|
@@ -8977,13 +8970,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8977
8970
|
}
|
|
8978
8971
|
var xSubgroup = d3.scaleBand().domain(subgroups);
|
|
8979
8972
|
if (this.chartConfiguration.isMultiChartGridLine == undefined) {
|
|
8980
|
-
|
|
8973
|
+
// For normal drill down chart, reduce bar width to 60% of slot and center
|
|
8974
|
+
const barWidthRatio = 0.6;
|
|
8975
|
+
const offset = (x.bandwidth() * (1 - barWidthRatio)) / 2;
|
|
8976
|
+
xSubgroup.range([offset, x.bandwidth() - offset]);
|
|
8981
8977
|
}
|
|
8982
8978
|
else {
|
|
8983
|
-
|
|
8984
|
-
* used to make grouped bars with lesser width as we are not using padding for width
|
|
8985
|
-
* used by weekly charts
|
|
8986
|
-
*/
|
|
8979
|
+
// For grouped/weekly charts, keep full width
|
|
8987
8980
|
xSubgroup.range([0, x.bandwidth()]);
|
|
8988
8981
|
}
|
|
8989
8982
|
// if (this.chartConfiguration.isDrilldownChart) {
|