Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

series中的loop设置为false,未能停止动画。constantSpeed也没有效果 #23

Open
hsj8038 opened this issue Jun 16, 2020 · 1 comment

Comments

@hsj8038
Copy link

hsj8038 commented Jun 16, 2020

series中的属性loop设置为false,希望在播放一遍后停止动画,但没有任何变化,界面还是不断做重启绘画工作。对constantSpeed设置为2秒,也没有效果,和不设置的一样。
请问,这两个属性支持吗?

@hsj8038
Copy link
Author

hsj8038 commented Jun 16, 2020

series.push({
name: item[0] + ' Top10',
type: 'lines',
zlevel: 1,
effect: {
show: true,
constantSpeed: 2,
trailLength: 0.7,
color: '#fff',
symbolSize: 3,
loop:false,
},
lineStyle: {
normal: {
color: color[i],
width: 0,
curveness: 0.2
}
},
data: convertData(item[1])
},
{
name: item[0] + ' Top10',
type: 'lines',
zlevel: 2,
effect: {
show: true,
constantSpeed: 2,
trailLength: 0,
symbol: planePath,
symbolSize: 15,
loop:false,
},
lineStyle: {
normal: {
color: color[i],
width: 1,
opacity: 0.4,
curveness: 0.2
}
},
data: convertData(item[1])
},
。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant