sag_components 1.0.552 → 1.0.553

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.
@@ -47,8 +47,6 @@ const getFormattedValue = num => {
47
47
  if (isNaN(parseFloat(num))) {
48
48
  return null;
49
49
  }
50
-
51
- // if (typeof num === 'number') {
52
50
  if (Math.abs(num) >= 1000000000) {
53
51
  return (num / 1000000000).toFixed(1).replace(/\.0$/, '');
54
52
  }
@@ -58,8 +56,7 @@ const getFormattedValue = num => {
58
56
  if (Math.abs(num) >= 1000) {
59
57
  return (num / 1000).toFixed(1).replace(/\.0$/, '');
60
58
  }
61
- return num;
62
- // }
59
+ return num % 1 === 0 ? num : num.toFixed(2);
63
60
  };
64
61
  exports.getFormattedValue = getFormattedValue;
65
62
  const getNumberWithCommas = x => {
@@ -115,7 +115,7 @@ const TotalDoughnutChart = props => {
115
115
  startAngle: -270,
116
116
  data: legendData,
117
117
  outerRadius: DoughnutChartRadius - 4,
118
- innerRadius: DoughnutChartRadius - DoughnutChartRadius / 3.3
118
+ innerRadius: DoughnutChartRadius - DoughnutChartRadius / 3
119
119
  }, legendData.map(row => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
120
120
  key: "cell-".concat(row.name),
121
121
  fill: row.color
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.552",
3
+ "version": "1.0.553",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {