sag_components 1.0.656 → 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), '%') : ''.concat('$', (0, _CommonFunctions.getFormattedValue)(value), (0, _CommonFunctions.getFormattedUnits)(value));
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) {
@@ -115,7 +100,7 @@ const BarChart = props => {
115
100
  dy: "30",
116
101
  fontSize: 14,
117
102
  fontWeight: 400
118
- }, retailerData[0].period)));
103
+ }, retailerData[0].date)));
119
104
  }
120
105
  return null;
121
106
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.656",
3
+ "version": "1.0.658",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {