@easyv/charts 1.7.29 → 1.7.30
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.
- package/lib/components/PieChart.js +7 -2
- package/package.json +1 -1
- package/src/components/PieChart.js +17 -15
|
@@ -760,7 +760,12 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
760
760
|
config: decorate,
|
|
761
761
|
arcs: _arcs,
|
|
762
762
|
radius: radius
|
|
763
|
-
}), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement(
|
|
763
|
+
}), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement("div", {
|
|
764
|
+
style: {
|
|
765
|
+
position: 'absolute',
|
|
766
|
+
zIndex: 9999
|
|
767
|
+
}
|
|
768
|
+
}, /*#__PURE__*/_react["default"].createElement(_PieTooltip.PieTooltip, {
|
|
764
769
|
series: series,
|
|
765
770
|
data: hoverData,
|
|
766
771
|
config: tooltip,
|
|
@@ -769,7 +774,7 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
769
774
|
y: maxRadius + marginTop
|
|
770
775
|
},
|
|
771
776
|
mousePos: mousePos
|
|
772
|
-
}), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
777
|
+
})), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
773
778
|
height: chartHeight,
|
|
774
779
|
series: _arcs.map(function (arc) {
|
|
775
780
|
return _objectSpread(_objectSpread({}, arc), {}, {
|
package/package.json
CHANGED
|
@@ -855,21 +855,23 @@ const Component = memo(
|
|
|
855
855
|
/>
|
|
856
856
|
)}
|
|
857
857
|
{tooltip &&
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
858
|
+
mousePos &&
|
|
859
|
+
mousePos.x != 0 &&
|
|
860
|
+
mousePos.y != 0 &&
|
|
861
|
+
tooltip.manual && (
|
|
862
|
+
<div style={{ position: 'absolute', zIndex: 9999 }}>
|
|
863
|
+
<PieTooltip
|
|
864
|
+
series={series}
|
|
865
|
+
data={hoverData}
|
|
866
|
+
config={tooltip}
|
|
867
|
+
pieCenter={{
|
|
868
|
+
x: halfChartWidth,
|
|
869
|
+
y: maxRadius + marginTop,
|
|
870
|
+
}}
|
|
871
|
+
mousePos={mousePos}
|
|
872
|
+
/>
|
|
873
|
+
</div>
|
|
874
|
+
)}
|
|
873
875
|
<Legend
|
|
874
876
|
{...legend}
|
|
875
877
|
height={chartHeight}
|