sag_components 1.0.770 → 1.0.771

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.
@@ -8,6 +8,7 @@ exports.default = exports.TotalDoughnutChart = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _recharts = require("recharts");
10
10
  var _CommonFunctions = require("./CommonFunctions");
11
+ var _NoDataFoundMessage = require("./NoDataFoundMessage");
11
12
  var _TotalDoughnutChart = require("./TotalDoughnutChart.style");
12
13
  var _Benchmark = require("./Benchmark");
13
14
  const TotalDoughnutChart = props => {
@@ -28,7 +29,8 @@ const TotalDoughnutChart = props => {
28
29
  height,
29
30
  textcolor,
30
31
  isPercent,
31
- hideTitleAndValue
32
+ hideTitleAndValue,
33
+ noDataText
32
34
  } = props;
33
35
  const [DoughnutChartRadius, setDoughnutChartRadius] = (0, _react.useState)(0);
34
36
  const [zoomResolution, setZoomResolution] = (0, _react.useState)(1);
@@ -86,7 +88,9 @@ const TotalDoughnutChart = props => {
86
88
  height: height,
87
89
  width: width,
88
90
  textcolor: textcolor
89
- }, /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Controls, {
91
+ }, legendData.length === 0 || value >= 0 ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
92
+ noDataText: noDataText
93
+ }) : /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Controls, {
90
94
  id: "Controls",
91
95
  height: height,
92
96
  width: width
@@ -143,7 +147,8 @@ TotalDoughnutChart.defaultProps = {
143
147
  height: '100%',
144
148
  textcolor: '#212121',
145
149
  isPercent: false,
146
- hideTitleAndValue: false
150
+ hideTitleAndValue: false,
151
+ noDataText: 'No Data'
147
152
  };
148
153
  function CustomTooltip(_ref) {
149
154
  let {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.770",
3
+ "version": "1.0.771",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {