axidio-styleguide-library1-v2 0.0.874 → 0.0.876
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.
|
@@ -8515,33 +8515,35 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8515
8515
|
var verticalstackedcontainer = d3.select(this.groupcontainerElt.nativeElement);
|
|
8516
8516
|
var margin = this.chartConfiguration.margin;
|
|
8517
8517
|
var width = parseInt(chartContainer.style('width')) - margin.left - margin.right;
|
|
8518
|
-
if (this.chartData.data.length > 30 && this.isZoomedOut) {
|
|
8519
|
-
|
|
8520
|
-
|
|
8521
|
-
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
|
|
8530
|
-
|
|
8531
|
-
}
|
|
8532
|
-
if (
|
|
8533
|
-
|
|
8534
|
-
|
|
8535
|
-
|
|
8536
|
-
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
|
|
8542
|
-
|
|
8543
|
-
|
|
8544
|
-
|
|
8518
|
+
// if (this.chartData.data.length > 30 && this.isZoomedOut) {
|
|
8519
|
+
// width =
|
|
8520
|
+
// width > this.chartData.data.length * 40
|
|
8521
|
+
// ? this.chartData.dropdownData1
|
|
8522
|
+
// ? this.chartData.data.length * 60
|
|
8523
|
+
// : width
|
|
8524
|
+
// : this.chartData.dropdownData1
|
|
8525
|
+
// ? this.chartData.data.length * 60
|
|
8526
|
+
// : this.chartData.data.length * 40;
|
|
8527
|
+
// width =
|
|
8528
|
+
// width > this.chartData.data.length * 40
|
|
8529
|
+
// ? width
|
|
8530
|
+
// : this.chartData.data.length * 40;
|
|
8531
|
+
// }
|
|
8532
|
+
// if (
|
|
8533
|
+
// this.chartData.dropdownData2 &&
|
|
8534
|
+
// width < this.chartData.data.length * 120 &&
|
|
8535
|
+
// this.isZoomedOut
|
|
8536
|
+
// ) {
|
|
8537
|
+
// width = this.chartData.data.length * 120;
|
|
8538
|
+
// }
|
|
8539
|
+
// if (this.chartData.data.length > 8 && !this.isZoomedOut) {
|
|
8540
|
+
// if (
|
|
8541
|
+
// this.chartData.dropdownData2 &&
|
|
8542
|
+
// width < this.chartData.data.length * 250
|
|
8543
|
+
// ) {
|
|
8544
|
+
// width = this.chartData.data.length * 250;
|
|
8545
|
+
// } else width = this.chartData.data.length * 160;
|
|
8546
|
+
// }
|
|
8545
8547
|
// if (this.chartData.data.length > 8) {
|
|
8546
8548
|
// width = this.chartData.data.length * 140;
|
|
8547
8549
|
// }
|
|
@@ -9165,14 +9167,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9165
9167
|
if (self.chartData.data.length == 1) {
|
|
9166
9168
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9167
9169
|
tempScale.range([
|
|
9168
|
-
0 + (x.bandwidth() -
|
|
9170
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
9169
9171
|
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9170
9172
|
]);
|
|
9171
9173
|
// .padding(0.05);
|
|
9172
9174
|
}
|
|
9173
9175
|
else
|
|
9174
9176
|
tempScale.range([
|
|
9175
|
-
0 + (x.bandwidth() -
|
|
9177
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
9176
9178
|
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
9177
9179
|
]);
|
|
9178
9180
|
// .padding(0.05);
|
|
@@ -9244,13 +9246,13 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9244
9246
|
if (self.chartData.data.length == 1) {
|
|
9245
9247
|
if (Object.keys(self.chartData.data[0]).length == 2) {
|
|
9246
9248
|
tempScale.range([
|
|
9247
|
-
0 + (x.bandwidth() -
|
|
9249
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
9248
9250
|
x.bandwidth() - (x.bandwidth() - 200) / 2,
|
|
9249
9251
|
]);
|
|
9250
9252
|
}
|
|
9251
9253
|
else
|
|
9252
9254
|
tempScale.range([
|
|
9253
|
-
0 + (x.bandwidth() -
|
|
9255
|
+
0 + (x.bandwidth() - 125) / 2,
|
|
9254
9256
|
x.bandwidth() - (x.bandwidth() - 300) / 2,
|
|
9255
9257
|
]);
|
|
9256
9258
|
}
|