axidio-styleguide-library1-v2 0.1.6 → 0.1.7
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.
|
@@ -8839,6 +8839,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8839
8839
|
return '';
|
|
8840
8840
|
}
|
|
8841
8841
|
// Always add space before and after hyphen for date range labels, even when header is visible and label is single line
|
|
8842
|
+
// Apply for grouped bar charts and single bar charts, header visible, single line
|
|
8842
8843
|
const dateRangeRegex = /(\d{2,4}[-\/]\d{2}[-\/]\d{2,4})\s*-\s*(\d{2,4}[-\/]\d{2}[-\/]\d{2,4})/;
|
|
8843
8844
|
if (dateRangeRegex.test(d.trim())) {
|
|
8844
8845
|
return d.trim().replace(dateRangeRegex, (m, d1, d2) => `${d1} - ${d2}`);
|
|
@@ -9145,7 +9146,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9145
9146
|
.attr('width', function (d) {
|
|
9146
9147
|
// For grouped bar charts in zoom-in view, slightly increase bar width for both bars (shipped and planned)
|
|
9147
9148
|
if (subgroups.length > 1 && !self.isZoomedOut) {
|
|
9148
|
-
return xSubgroup.bandwidth() * 0.
|
|
9149
|
+
return xSubgroup.bandwidth() * 0.3;
|
|
9149
9150
|
}
|
|
9150
9151
|
// For single-bar (non-grouped) charts in zoom-in view, set bar width to 80
|
|
9151
9152
|
if (subgroups.length === 1 && !self.isZoomedOut) {
|
|
@@ -9161,7 +9162,7 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9161
9162
|
// Increase bar width a bit in zoom-in view
|
|
9162
9163
|
let reducedBarWidth = 60;
|
|
9163
9164
|
if (!self.isZoomedOut) {
|
|
9164
|
-
reducedBarWidth =
|
|
9165
|
+
reducedBarWidth = 100;
|
|
9165
9166
|
}
|
|
9166
9167
|
if (self.chartData.data.length == 1) {
|
|
9167
9168
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|