loveLan18913 opened a new issue, #20279:
URL: https://github.com/apache/echarts/issues/20279
### Version
e.g. 5.5.1
### Link to Minimal Reproduction
lines 路径图数据刷新,设置了effect后,每次刷新数据图形都会闪烁一下
### Steps to Reproduce
const option = computed<EChartsOption>(() => {
return {
xAxis: {
show: false,
type: 'value',
},
grid: {
top: '5%',
bottom: '10%',
left: '2%',
right: '2%',
},
yAxis: {
show: false,
type: 'value',
},
coordinateSystem: 'cartesian2d',
series: [
{
type: 'graph',
animation: true,
coordinateSystem: 'cartesian2d',
legendHoverLink: false,
emphasis: {
scale: true,
},
roam: false,
lineStyle: {
width: 0,
shadowColor: 'none',
color: 'transparent',
},
data: props.config.y1List,
},
{
type: 'lines',
coordinateSystem: 'cartesian2d',
z: 1,
// zleve: 1,
animationEasing: 'linear',
// clip: false,
effect: {
show: true,
trailLength: 0.01,
symbol: 'pin',
color: '#1afffd',
period: 4, //特效动画的时间
symbolSize: [7, 10],
},
lineStyle: {
curveness: 0,
color: '#fff',
opacity: 0.4,
width: 0.5,
type: 'dashed',
},
data: props.config.y2List,
},
],
}
})
...
watchEffect(() => echartInstance.setOption(props.option, false, true))
### Current Behavior
使用pinia将数据从缓存中取出交由页面,刷新echart的data数据后,lines的effect就会闪烁一下
### Expected Behavior
刷新数据不会闪烁
### Environment
```markdown
- OS:
- Browser:
- Framework:
```
### Any additional comments?
1
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]