尝试修复长时间运行后3D饼图消失的bug
parent
f1c8e2ea24
commit
00d45b0ee3
|
@ -51,6 +51,8 @@ const getParametricEquation = (
|
|||
// 计算高亮效果的放大比例(未高亮,则比例为 1)
|
||||
let hoverRate = isHovered ? size[0] : size[1];
|
||||
|
||||
size = null;
|
||||
|
||||
// 返回曲面参数方程
|
||||
return {
|
||||
u: {
|
||||
|
@ -292,6 +294,7 @@ const getPie3D = (sumValue, pieValue, internalDiameterRatio, height, size) => {
|
|||
endValue = startValue + pieValue[i];
|
||||
option.series[i].pieData.startRatio = startValue / sumValue;
|
||||
option.series[i].pieData.endRatio = endValue / sumValue;
|
||||
option.series[i].parametricEquation = null;
|
||||
option.series[i].parametricEquation = getParametricEquation(
|
||||
option.series[i].pieData.startRatio,
|
||||
option.series[i].pieData.endRatio,
|
||||
|
|
Loading…
Reference in New Issue