axidio-styleguide-library1-v2 0.6.90 → 0.6.91
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.
|
@@ -3529,30 +3529,24 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3529
3529
|
let width = baseWidth;
|
|
3530
3530
|
const isTablet = window.innerWidth <= 1024 && window.innerWidth > 768;
|
|
3531
3531
|
const isMobile = window.innerWidth <= 768;
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
else if (isTablet) {
|
|
3537
|
-
widthMultiplier = 1.25;
|
|
3538
|
-
}
|
|
3539
|
-
if (dataLength > 30 && this.isZoomedOut) {
|
|
3540
|
-
const multiplier = this.chartData.dropdownData1 ? 60 : 40;
|
|
3541
|
-
width = Math.max(width, dataLength * multiplier * widthMultiplier);
|
|
3542
|
-
}
|
|
3543
|
-
if (this.chartData.dropdownData2 && width < dataLength * 120 && this.isZoomedOut) {
|
|
3544
|
-
width = dataLength * 120 * widthMultiplier;
|
|
3545
|
-
}
|
|
3546
|
-
if (dataLength > 8 && !this.isZoomedOut) {
|
|
3547
|
-
if (this.chartData.dropdownData2 && width < dataLength * 250) {
|
|
3548
|
-
width = dataLength * 250 * widthMultiplier;
|
|
3532
|
+
if (this.isZoomedOut) {
|
|
3533
|
+
let widthMultiplier = 1;
|
|
3534
|
+
if (isMobile) {
|
|
3535
|
+
widthMultiplier = 1.4;
|
|
3549
3536
|
}
|
|
3550
|
-
else {
|
|
3551
|
-
|
|
3537
|
+
else if (isTablet) {
|
|
3538
|
+
widthMultiplier = 1.25;
|
|
3539
|
+
}
|
|
3540
|
+
if (dataLength > 30) {
|
|
3541
|
+
const multiplier = this.chartData.dropdownData1 ? 60 : 40;
|
|
3542
|
+
width = Math.max(width, dataLength * multiplier * widthMultiplier);
|
|
3543
|
+
}
|
|
3544
|
+
if (this.chartData.dropdownData2 && width < dataLength * 120) {
|
|
3545
|
+
width = dataLength * 120 * widthMultiplier;
|
|
3552
3546
|
}
|
|
3553
3547
|
}
|
|
3554
|
-
else
|
|
3555
|
-
width = baseWidth
|
|
3548
|
+
else {
|
|
3549
|
+
width = baseWidth;
|
|
3556
3550
|
}
|
|
3557
3551
|
return width;
|
|
3558
3552
|
}
|
|
@@ -3585,7 +3579,6 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3585
3579
|
const { width, height, margin } = dimensions;
|
|
3586
3580
|
const leftAndRightSpaces = 50;
|
|
3587
3581
|
const rightSvgWidth = 60;
|
|
3588
|
-
const barPadding = 0.3;
|
|
3589
3582
|
const groups = d3.map(data, (d) => d.name).keys();
|
|
3590
3583
|
let x;
|
|
3591
3584
|
if (this.chartConfiguration.isMultiChartGridLine !== undefined) {
|
|
@@ -3593,7 +3586,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3593
3586
|
.scaleBand()
|
|
3594
3587
|
.rangeRound([0, width])
|
|
3595
3588
|
.align(0.5)
|
|
3596
|
-
.padding(
|
|
3589
|
+
.padding(0.5)
|
|
3597
3590
|
.domain(data.map((d) => d.name.toLowerCase()).reverse());
|
|
3598
3591
|
}
|
|
3599
3592
|
else {
|
|
@@ -3601,7 +3594,7 @@ class GroupChartComponent extends ComponentUniqueId {
|
|
|
3601
3594
|
.scaleBand()
|
|
3602
3595
|
.domain(groups.reverse())
|
|
3603
3596
|
.range([leftAndRightSpaces, width - rightSvgWidth - leftAndRightSpaces])
|
|
3604
|
-
.padding(
|
|
3597
|
+
.padding(0.3);
|
|
3605
3598
|
}
|
|
3606
3599
|
const xScaleFromOrigin = d3.scaleBand().domain(groups).range([0, width - rightSvgWidth]);
|
|
3607
3600
|
const xSubgroup = d3.scaleBand().domain(keyList).range([0, x.bandwidth()]);
|