mirror of
https://gitee.com/dromara/go-view.git
synced 2025-06-18 19:59:14 +08:00
fix: 处理饼图动画错误的计算
This commit is contained in:
parent
f883fec1f6
commit
8bb65e57f4
@ -209,7 +209,11 @@ const createOrUpdateChart = (
|
||||
return true
|
||||
} else if (chart) {
|
||||
const spec = transformHandler[chartProps.category || '']?.(chartProps)
|
||||
chart.updateSpec({ ...spec, data: toRaw(chartProps.dataset), dataset: undefined })
|
||||
chart.updateSpec({ ...spec, data: toRaw(chartProps.dataset), dataset: undefined }, false, undefined, {
|
||||
change: false,
|
||||
reMake: false,
|
||||
reAnimate: true
|
||||
})
|
||||
return true
|
||||
}
|
||||
return false
|
||||
|
@ -129,7 +129,7 @@ const animationHandle = (value: boolean) => {
|
||||
effects: {
|
||||
channel: {
|
||||
outerRadius: {
|
||||
to: props.optionData.outerRadius * 100 + 0.1
|
||||
to: props.optionData.outerRadius * 100 + 10
|
||||
}
|
||||
},
|
||||
easing: 'linear'
|
||||
@ -140,7 +140,7 @@ const animationHandle = (value: boolean) => {
|
||||
effects: {
|
||||
channel: {
|
||||
outerRadius: {
|
||||
to: props.optionData.outerRadius * 100 + 0.1
|
||||
to: props.optionData.outerRadius * 100 + 10
|
||||
}
|
||||
},
|
||||
easing: 'linear'
|
||||
|
Loading…
x
Reference in New Issue
Block a user