@easyv/charts 1.10.12 → 1.10.13
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.
|
@@ -605,10 +605,21 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
605
605
|
},
|
|
606
606
|
arcs: _arcs,
|
|
607
607
|
judge: judgeData
|
|
608
|
-
}))),
|
|
608
|
+
}))), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
609
|
+
height: chartHeight,
|
|
610
|
+
columnsSeries: columnsSeries,
|
|
611
|
+
data: data,
|
|
612
|
+
series: _arcs.map(function (arc) {
|
|
613
|
+
return _objectSpread(_objectSpread({}, arc), {}, {
|
|
614
|
+
percent: arc.percent.toFixed(legendPrecision)
|
|
615
|
+
});
|
|
616
|
+
}),
|
|
617
|
+
pieClick: onClick,
|
|
618
|
+
formatter: formatter,
|
|
619
|
+
judge: judgeData
|
|
620
|
+
})), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement("div", {
|
|
609
621
|
style: {
|
|
610
622
|
position: "absolute",
|
|
611
|
-
zIndex: 9999,
|
|
612
623
|
pointerEvents: "none"
|
|
613
624
|
}
|
|
614
625
|
}, /*#__PURE__*/_react["default"].createElement(_PieTooltip.PieTooltip, {
|
|
@@ -621,18 +632,6 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
621
632
|
y: maxRadius + marginTop
|
|
622
633
|
},
|
|
623
634
|
mousePos: mousePos
|
|
624
|
-
})), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
625
|
-
height: chartHeight,
|
|
626
|
-
columnsSeries: columnsSeries,
|
|
627
|
-
data: data,
|
|
628
|
-
series: _arcs.map(function (arc) {
|
|
629
|
-
return _objectSpread(_objectSpread({}, arc), {}, {
|
|
630
|
-
percent: arc.percent.toFixed(legendPrecision)
|
|
631
|
-
});
|
|
632
|
-
}),
|
|
633
|
-
pieClick: onClick,
|
|
634
|
-
formatter: formatter,
|
|
635
|
-
judge: judgeData
|
|
636
635
|
}))) : /*#__PURE__*/_react["default"].createElement("div", {
|
|
637
636
|
ref: domRef
|
|
638
637
|
}, /*#__PURE__*/_react["default"].createElement(_.ChartContainer, {
|
|
@@ -776,10 +775,21 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
776
775
|
config: decorate,
|
|
777
776
|
arcs: _arcs,
|
|
778
777
|
radius: radius
|
|
779
|
-
}),
|
|
778
|
+
}), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
779
|
+
height: chartHeight,
|
|
780
|
+
data: data,
|
|
781
|
+
columnsSeries: columnsSeries,
|
|
782
|
+
series: _arcs.map(function (arc) {
|
|
783
|
+
return _objectSpread(_objectSpread({}, arc), {}, {
|
|
784
|
+
percent: arc.percent.toFixed(legendPrecision)
|
|
785
|
+
});
|
|
786
|
+
}),
|
|
787
|
+
pieClick: onClick,
|
|
788
|
+
formatter: formatter,
|
|
789
|
+
judge: judgeData
|
|
790
|
+
})), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement("div", {
|
|
780
791
|
style: {
|
|
781
792
|
position: "absolute",
|
|
782
|
-
zIndex: 9999,
|
|
783
793
|
pointerEvents: "none"
|
|
784
794
|
}
|
|
785
795
|
}, /*#__PURE__*/_react["default"].createElement(_PieTooltip.PieTooltip, {
|
|
@@ -792,18 +802,6 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
792
802
|
y: maxRadius + marginTop
|
|
793
803
|
},
|
|
794
804
|
mousePos: mousePos
|
|
795
|
-
})), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
|
|
796
|
-
height: chartHeight,
|
|
797
|
-
data: data,
|
|
798
|
-
columnsSeries: columnsSeries,
|
|
799
|
-
series: _arcs.map(function (arc) {
|
|
800
|
-
return _objectSpread(_objectSpread({}, arc), {}, {
|
|
801
|
-
percent: arc.percent.toFixed(legendPrecision)
|
|
802
|
-
});
|
|
803
|
-
}),
|
|
804
|
-
pieClick: onClick,
|
|
805
|
-
formatter: formatter,
|
|
806
|
-
judge: judgeData
|
|
807
805
|
})));
|
|
808
806
|
});
|
|
809
807
|
var Current = function Current(_ref9) {
|
|
@@ -99,8 +99,7 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
|
|
|
99
99
|
}, (0, _utils.getFontStyle)(font)), {}, {
|
|
100
100
|
width: "fit-content",
|
|
101
101
|
maxWidth: "none",
|
|
102
|
-
overflow: "visible"
|
|
103
|
-
zIndex: 9999
|
|
102
|
+
overflow: "visible"
|
|
104
103
|
})
|
|
105
104
|
}, formatter ? formatter({
|
|
106
105
|
series: series,
|
package/package.json
CHANGED
|
@@ -622,6 +622,20 @@ const Component = memo(
|
|
|
622
622
|
)}
|
|
623
623
|
</g>
|
|
624
624
|
</ChartContainer>
|
|
625
|
+
|
|
626
|
+
<Legend
|
|
627
|
+
{...legend}
|
|
628
|
+
height={chartHeight}
|
|
629
|
+
columnsSeries={columnsSeries}
|
|
630
|
+
data={data}
|
|
631
|
+
series={_arcs.map((arc) => ({
|
|
632
|
+
...arc,
|
|
633
|
+
percent: arc.percent.toFixed(legendPrecision),
|
|
634
|
+
}))}
|
|
635
|
+
pieClick={onClick}
|
|
636
|
+
formatter={formatter}
|
|
637
|
+
judge={judgeData}
|
|
638
|
+
/>
|
|
625
639
|
{tooltip &&
|
|
626
640
|
mousePos &&
|
|
627
641
|
mousePos.x != 0 &&
|
|
@@ -630,7 +644,6 @@ const Component = memo(
|
|
|
630
644
|
<div
|
|
631
645
|
style={{
|
|
632
646
|
position: "absolute",
|
|
633
|
-
zIndex: 9999,
|
|
634
647
|
pointerEvents: "none",
|
|
635
648
|
}}
|
|
636
649
|
>
|
|
@@ -647,19 +660,6 @@ const Component = memo(
|
|
|
647
660
|
/>
|
|
648
661
|
</div>
|
|
649
662
|
)}
|
|
650
|
-
<Legend
|
|
651
|
-
{...legend}
|
|
652
|
-
height={chartHeight}
|
|
653
|
-
columnsSeries={columnsSeries}
|
|
654
|
-
data={data}
|
|
655
|
-
series={_arcs.map((arc) => ({
|
|
656
|
-
...arc,
|
|
657
|
-
percent: arc.percent.toFixed(legendPrecision),
|
|
658
|
-
}))}
|
|
659
|
-
pieClick={onClick}
|
|
660
|
-
formatter={formatter}
|
|
661
|
-
judge={judgeData}
|
|
662
|
-
/>
|
|
663
663
|
</div>
|
|
664
664
|
) : (
|
|
665
665
|
<div ref={domRef}>
|
|
@@ -893,6 +893,20 @@ const Component = memo(
|
|
|
893
893
|
radius={radius}
|
|
894
894
|
/>
|
|
895
895
|
)}
|
|
896
|
+
|
|
897
|
+
<Legend
|
|
898
|
+
{...legend}
|
|
899
|
+
height={chartHeight}
|
|
900
|
+
data={data}
|
|
901
|
+
columnsSeries={columnsSeries}
|
|
902
|
+
series={_arcs.map((arc) => ({
|
|
903
|
+
...arc,
|
|
904
|
+
percent: arc.percent.toFixed(legendPrecision),
|
|
905
|
+
}))}
|
|
906
|
+
pieClick={onClick}
|
|
907
|
+
formatter={formatter}
|
|
908
|
+
judge={judgeData}
|
|
909
|
+
/>
|
|
896
910
|
{tooltip &&
|
|
897
911
|
mousePos &&
|
|
898
912
|
mousePos.x != 0 &&
|
|
@@ -901,7 +915,6 @@ const Component = memo(
|
|
|
901
915
|
<div
|
|
902
916
|
style={{
|
|
903
917
|
position: "absolute",
|
|
904
|
-
zIndex: 9999,
|
|
905
918
|
pointerEvents: "none",
|
|
906
919
|
}}
|
|
907
920
|
>
|
|
@@ -918,19 +931,6 @@ const Component = memo(
|
|
|
918
931
|
/>
|
|
919
932
|
</div>
|
|
920
933
|
)}
|
|
921
|
-
<Legend
|
|
922
|
-
{...legend}
|
|
923
|
-
height={chartHeight}
|
|
924
|
-
data={data}
|
|
925
|
-
columnsSeries={columnsSeries}
|
|
926
|
-
series={_arcs.map((arc) => ({
|
|
927
|
-
...arc,
|
|
928
|
-
percent: arc.percent.toFixed(legendPrecision),
|
|
929
|
-
}))}
|
|
930
|
-
pieClick={onClick}
|
|
931
|
-
formatter={formatter}
|
|
932
|
-
judge={judgeData}
|
|
933
|
-
/>
|
|
934
934
|
</div>
|
|
935
935
|
);
|
|
936
936
|
},
|