sag_components 1.0.1005 → 1.0.1006
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.
|
@@ -111,8 +111,8 @@ const BarChart = props => {
|
|
|
111
111
|
var _payload$value2;
|
|
112
112
|
if (retailerData[0].isCurrent) {
|
|
113
113
|
var _payload$value;
|
|
114
|
-
if ((payload === null || payload === void 0 ? void 0 : (_payload$value = payload.value) === null || _payload$value === void 0 ? void 0 : _payload$value.length) >
|
|
115
|
-
return `${payload.value.slice(0,
|
|
114
|
+
if ((payload === null || payload === void 0 ? void 0 : (_payload$value = payload.value) === null || _payload$value === void 0 ? void 0 : _payload$value.length) > 6) {
|
|
115
|
+
return `${payload.value.slice(0, 6)}...-Current`;
|
|
116
116
|
}
|
|
117
117
|
return `${payload.value}-Current`;
|
|
118
118
|
}
|
|
@@ -145,7 +145,7 @@ const BarChart = props => {
|
|
|
145
145
|
x: x + 30,
|
|
146
146
|
y: y,
|
|
147
147
|
dy: -8,
|
|
148
|
-
fill: stroke,
|
|
148
|
+
fill: showCurrentCampaignStyle ? '#8B8989' : stroke,
|
|
149
149
|
fontSize: barFontSizeValue,
|
|
150
150
|
textAnchor: "middle"
|
|
151
151
|
}, displayFormattedValue(value));
|