@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 ||
|
|
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 ? ':' : '')),
|
|
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' : '',
|
package/lib/formatter/legend.js
CHANGED
|
@@ -73,7 +73,7 @@ var pieLegendFormatter = function pieLegendFormatter(_ref, _ref2) {
|
|
|
73
73
|
alignItems: 'center',
|
|
74
74
|
justifyContent: 'flex-start'
|
|
75
75
|
})
|
|
76
|
-
},
|
|
76
|
+
}, /*#__PURE__*/React.createElement("span", null, data.y), showSuffix && /*#__PURE__*/React.createElement("span", {
|
|
77
77
|
style: {
|
|
78
78
|
whiteSpace: "nowrap",
|
|
79
79
|
fontSize: fontSize,
|
package/lib/utils/index.js
CHANGED
package/package.json
CHANGED
|
@@ -861,7 +861,7 @@ const Label = ({
|
|
|
861
861
|
|
|
862
862
|
return (
|
|
863
863
|
show &&
|
|
864
|
-
(_showName || showPercent ||
|
|
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
|
-
{
|
|
890
|
+
{showValue && (
|
|
891
891
|
<>
|
|
892
892
|
<tspan
|
|
893
893
|
x={!!(_showName && mode == 'vertical') ? _x : ''}
|
package/src/formatter/legend.js
CHANGED