axidio-styleguide-library1-v2 0.2.68 → 0.2.70
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.
|
@@ -9103,7 +9103,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9103
9103
|
}
|
|
9104
9104
|
});
|
|
9105
9105
|
if (hasDateValues && subgroups && subgroups.length < 3) {
|
|
9106
|
-
// For single
|
|
9106
|
+
// For single chart with dates, ensure horizontal display
|
|
9107
9107
|
textNodes
|
|
9108
9108
|
.style('writing-mode', 'horizontal-tb') // Explicitly set horizontal
|
|
9109
9109
|
.classed('mobile-xaxis-override', false) // Remove vertical class
|
|
@@ -9299,32 +9299,16 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9299
9299
|
setupXSubgroupScale(subgroups, x, self) {
|
|
9300
9300
|
const xSubgroup = d3.scaleBand().domain(subgroups);
|
|
9301
9301
|
if (subgroups.length > 1 && !this.isZoomedOut) {
|
|
9302
|
-
xSubgroup.range([0, x.bandwidth()])
|
|
9302
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
9303
9303
|
}
|
|
9304
9304
|
else if (subgroups.length === 1 && !this.isZoomedOut) {
|
|
9305
9305
|
xSubgroup.range([0, 100]);
|
|
9306
9306
|
}
|
|
9307
|
-
else if (this.chartConfiguration.isMultiChartGridLine
|
|
9308
|
-
xSubgroup.range([0, x.bandwidth()])
|
|
9307
|
+
else if (this.chartConfiguration.isMultiChartGridLine === undefined) {
|
|
9308
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
9309
9309
|
}
|
|
9310
9310
|
else {
|
|
9311
|
-
|
|
9312
|
-
xSubgroup.range([0, x.bandwidth()]).padding(0.25);
|
|
9313
|
-
}
|
|
9314
|
-
// Enable horizontal scrollbar in zoom-out view on mobile/tablet
|
|
9315
|
-
const isMobile = window.innerWidth < 576;
|
|
9316
|
-
const isTablet = window.innerWidth >= 576 && window.innerWidth < 992;
|
|
9317
|
-
if ((isMobile || isTablet) && this.isZoomedOut && subgroups.length > 1) {
|
|
9318
|
-
// Add a class or style to the container to enable horizontal scrolling
|
|
9319
|
-
const chartContainer = this.containerElt.nativeElement;
|
|
9320
|
-
chartContainer.style.overflowX = 'auto';
|
|
9321
|
-
chartContainer.style.webkitOverflowScrolling = 'touch';
|
|
9322
|
-
}
|
|
9323
|
-
else {
|
|
9324
|
-
// Remove horizontal scroll if not needed
|
|
9325
|
-
const chartContainer = this.containerElt.nativeElement;
|
|
9326
|
-
chartContainer.style.overflowX = '';
|
|
9327
|
-
chartContainer.style.webkitOverflowScrolling = '';
|
|
9311
|
+
xSubgroup.range([0, x.bandwidth()]);
|
|
9328
9312
|
}
|
|
9329
9313
|
return xSubgroup;
|
|
9330
9314
|
}
|