@easyv/charts 1.0.69 → 1.0.70

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.
@@ -887,7 +887,7 @@ var Label = function Label(_ref10) {
887
887
 
888
888
  var _showValue = showValue && (value || showSuffix);
889
889
 
890
- return show && (_showName || showPercent || _showValue) && /*#__PURE__*/_react["default"].createElement("g", {
890
+ return show && (_showName || showPercent || showValue) && /*#__PURE__*/_react["default"].createElement("g", {
891
891
  key: index
892
892
  }, /*#__PURE__*/_react["default"].createElement("path", {
893
893
  className: animation ? _piechartModule["default"]['label-line'] : "",
@@ -908,7 +908,7 @@ var Label = function Label(_ref10) {
908
908
  textAnchor: x3 >= 0 ? 'start' : 'end'
909
909
  }, _showName && /*#__PURE__*/_react["default"].createElement("tspan", {
910
910
  style: (0, _utils.getFontStyle)(nameFont, 'svg')
911
- }, displayName + (showValue || showPercent ? ':' : '')), _showValue && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("tspan", {
911
+ }, displayName + (showValue || showPercent ? ':' : '')), showValue && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("tspan", {
912
912
  x: !!(_showName && mode == 'vertical') ? _x : '',
913
913
  dx: valueDx(_showName, mode),
914
914
  dy: !!(_showName && mode == 'vertical') ? '1.5em' : '',
@@ -73,7 +73,7 @@ var pieLegendFormatter = function pieLegendFormatter(_ref, _ref2) {
73
73
  alignItems: 'center',
74
74
  justifyContent: 'flex-start'
75
75
  })
76
- }, showValue && /*#__PURE__*/React.createElement("span", null, data.y), showSuffix && /*#__PURE__*/React.createElement("span", {
76
+ }, /*#__PURE__*/React.createElement("span", null, data.y), showSuffix && /*#__PURE__*/React.createElement("span", {
77
77
  style: {
78
78
  whiteSpace: "nowrap",
79
79
  fontSize: fontSize,
@@ -804,7 +804,6 @@ var getDataWithPercent = function getDataWithPercent() {
804
804
 
805
805
  return obj;
806
806
  });
807
- console.log(tmp);
808
807
  return tmp;
809
808
  };
810
809
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.0.69",
3
+ "version": "1.0.70",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -861,7 +861,7 @@ const Label = ({
861
861
 
862
862
  return (
863
863
  show &&
864
- (_showName || showPercent || _showValue) && (
864
+ (_showName || showPercent || showValue) && (
865
865
  <g key={index}>
866
866
  <path
867
867
  className={animation? ringCss['label-line']:""}
@@ -887,7 +887,7 @@ const Label = ({
887
887
  {displayName + (showValue || showPercent ? ':' : '')}
888
888
  </tspan>
889
889
  )}
890
- {_showValue && (
890
+ {showValue && (
891
891
  <>
892
892
  <tspan
893
893
  x={!!(_showName && mode == 'vertical') ? _x : ''}
@@ -58,7 +58,7 @@ export const pieLegendFormatter = (
58
58
  justifyContent: 'flex-start',
59
59
  }}
60
60
  >
61
- {showValue && <span>{data.y}</span>}
61
+ <span>{data.y}</span>
62
62
  {showSuffix && (
63
63
  <span
64
64
  style={{
@@ -637,7 +637,6 @@ const getDataWithPercent = (data = [], precision = 0) => {
637
637
  }
638
638
  return obj
639
639
  });
640
- console.log(tmp)
641
640
  return tmp;
642
641
  };
643
642