axidio-styleguide-library1-v2 0.1.19 → 0.1.20
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.
|
@@ -8787,9 +8787,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8787
8787
|
if (subgroups.length > 1 && data.length > 8 && metaData.xLabel) {
|
|
8788
8788
|
const isDateLabel = /\d{2,4}[-\/]/.test(d);
|
|
8789
8789
|
if (self.chartConfiguration.isFullScreen) {
|
|
8790
|
-
return isDateLabel ? short_tick_length_bg +
|
|
8790
|
+
return isDateLabel ? short_tick_length_bg + 14 : short_tick_length_bg;
|
|
8791
8791
|
}
|
|
8792
|
-
return isDateLabel ? short_tick_length_bg +
|
|
8792
|
+
return isDateLabel ? short_tick_length_bg + 14 : short_tick_length_bg;
|
|
8793
8793
|
}
|
|
8794
8794
|
// For grouped bar charts with many bars and NO xLabel, add space as before, but reduce in fullscreen
|
|
8795
8795
|
if (subgroups.length > 1 && data.length > 8 && !metaData.xLabel) {
|
|
@@ -9151,11 +9151,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9151
9151
|
.attr('width', function (d) {
|
|
9152
9152
|
// For grouped bar charts in zoom-in view, slightly increase bar width for both bars (shipped and planned)
|
|
9153
9153
|
if (subgroups.length > 1 && !self.isZoomedOut) {
|
|
9154
|
-
return xSubgroup.bandwidth() * 0.
|
|
9154
|
+
return xSubgroup.bandwidth() * 0.3;
|
|
9155
9155
|
}
|
|
9156
9156
|
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9157
9157
|
if (subgroups.length === 1 && !self.isZoomedOut) {
|
|
9158
|
-
return
|
|
9158
|
+
return 80;
|
|
9159
9159
|
}
|
|
9160
9160
|
// Default logic for other chart types
|
|
9161
9161
|
if (self.chartConfiguration.isDrilldownChart) {
|
|
@@ -9165,9 +9165,9 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9165
9165
|
tempScale = d3.scaleBand().domain(keys).range([0, x.bandwidth()]);
|
|
9166
9166
|
if (x.bandwidth() > 100) {
|
|
9167
9167
|
// Increase bar width a bit in zoom-in view
|
|
9168
|
-
let reducedBarWidth =
|
|
9168
|
+
let reducedBarWidth = 60;
|
|
9169
9169
|
if (!self.isZoomedOut) {
|
|
9170
|
-
reducedBarWidth =
|
|
9170
|
+
reducedBarWidth = 100;
|
|
9171
9171
|
}
|
|
9172
9172
|
if (self.chartData.data.length == 1) {
|
|
9173
9173
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|