axidio-styleguide-library1-v2 0.1.88 → 0.1.90
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.
- package/esm2022/lib/horizontal-bars-with-scroll-zoom/horizontal-bars-with-scroll-zoom.component.mjs +2 -2
- package/esm2022/lib/horizontal-grouped-bar-with-scroll-zoom/horizontal-grouped-bar-with-scroll-zoom.component.mjs +12 -7
- package/fesm2022/axidio-styleguide-library1-v2.mjs +12 -7
- package/fesm2022/axidio-styleguide-library1-v2.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -7908,7 +7908,7 @@ class HorizontalBarsWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
7908
7908
|
/**
|
|
7909
7909
|
* used to display y label
|
|
7910
7910
|
*/
|
|
7911
|
-
if (this.isZoomedOut && this.chartData.data.length >
|
|
7911
|
+
if (this.isZoomedOut && this.chartData.data.length > 9) {
|
|
7912
7912
|
svg
|
|
7913
7913
|
.selectAll('.lib-xaxis-labels-texts-drilldown')
|
|
7914
7914
|
.attr('transform', 'rotate(-90)')
|
|
@@ -8318,11 +8318,11 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
8318
8318
|
}
|
|
8319
8319
|
if (this.chartData.data.length > 8 && !this.isZoomedOut) {
|
|
8320
8320
|
if (this.chartData.dropdownData2 &&
|
|
8321
|
-
width < this.chartData.data.length *
|
|
8322
|
-
width = this.chartData.data.length *
|
|
8321
|
+
width < this.chartData.data.length * 250) {
|
|
8322
|
+
width = this.chartData.data.length * 250;
|
|
8323
8323
|
}
|
|
8324
8324
|
else
|
|
8325
|
-
width = this.chartData.data.length *
|
|
8325
|
+
width = this.chartData.data.length * 160;
|
|
8326
8326
|
}
|
|
8327
8327
|
// if (this.chartData.data.length > 8) {
|
|
8328
8328
|
// width = this.chartData.data.length * 140;
|
|
@@ -9003,9 +9003,14 @@ class HorizontalGroupedBarWithScrollZoomComponent extends ComponentUniqueId {
|
|
|
9003
9003
|
.attr('fill', function (d) {
|
|
9004
9004
|
if (d.value &&
|
|
9005
9005
|
self.chartData.targetLineData &&
|
|
9006
|
-
d.value >=
|
|
9007
|
-
self.chartData.metaData.colorAboveTarget)
|
|
9008
|
-
|
|
9006
|
+
d.value >= parseFloat(self.chartData.targetLineData.target) &&
|
|
9007
|
+
self.chartData.metaData.colorAboveTarget) {
|
|
9008
|
+
const key = d.key.toLowerCase();
|
|
9009
|
+
const colorAboveTarget = Object.keys(self.chartData.metaData.colorAboveTarget).find(k => k.toLowerCase() === key);
|
|
9010
|
+
if (colorAboveTarget) {
|
|
9011
|
+
return self.chartData.metaData.colorAboveTarget[colorAboveTarget];
|
|
9012
|
+
}
|
|
9013
|
+
}
|
|
9009
9014
|
return self.chartData.metaData.colors[d.key];
|
|
9010
9015
|
});
|
|
9011
9016
|
/**
|