sag_components 1.0.657 → 1.0.658
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.
|
@@ -49,7 +49,7 @@ const BarChart = props => {
|
|
|
49
49
|
const displayFormattedValue = value => {
|
|
50
50
|
if (!value) return '';
|
|
51
51
|
let formattedValue = '';
|
|
52
|
-
formattedValue = !isDollar ? ''.concat('', value.toFixed(1)
|
|
52
|
+
formattedValue = !isDollar ? ''.concat('X', value.toFixed(1)) : ''.concat('$', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
|
|
53
53
|
return formattedValue;
|
|
54
54
|
};
|
|
55
55
|
|
|
@@ -73,21 +73,6 @@ const BarChart = props => {
|
|
|
73
73
|
stroke,
|
|
74
74
|
payload
|
|
75
75
|
} = props;
|
|
76
|
-
|
|
77
|
-
// const handleMouseEnter = (content) => {
|
|
78
|
-
// setTooltipCouponText((prevState) => ({
|
|
79
|
-
// ...prevState,
|
|
80
|
-
// content: content !== prevState.content ? content : prevState.content,
|
|
81
|
-
// clientX: x,
|
|
82
|
-
// clientY: y,
|
|
83
|
-
// }));
|
|
84
|
-
// setShowLegendTooltip(true);
|
|
85
|
-
// };
|
|
86
|
-
|
|
87
|
-
// const handleMouseLeave = () => {
|
|
88
|
-
// setShowLegendTooltip(false);
|
|
89
|
-
// };
|
|
90
|
-
|
|
91
76
|
if (barChartData && barChartData.length > 0 && payload) {
|
|
92
77
|
const retailerData = barChartData.filter(item => item.title === payload.value);
|
|
93
78
|
if (retailerData && retailerData.length > 0) {
|