@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.
@@ -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(_PieTooltip.PieTooltip, {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.7.29",
3
+ "version": "1.7.30",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -855,21 +855,23 @@ const Component = memo(
855
855
  />
856
856
  )}
857
857
  {tooltip &&
858
- mousePos &&
859
- mousePos.x != 0 &&
860
- mousePos.y != 0 &&
861
- tooltip.manual && (
862
- <PieTooltip
863
- series={series}
864
- data={hoverData}
865
- config={tooltip}
866
- pieCenter={{
867
- x: halfChartWidth,
868
- y: maxRadius + marginTop,
869
- }}
870
- mousePos={mousePos}
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}