Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

图形元素的style属性回调方法只执行了一次 #5013

Closed
Forge-nb opened this issue May 12, 2023 · 0 comments
Closed

图形元素的style属性回调方法只执行了一次 #5013

Forge-nb opened this issue May 12, 2023 · 0 comments

Comments

@Forge-nb
Copy link

如下代码:
chart
.line()
.style('time', val => {
let style = {
lineWidth: 2,
stroke: '#0084F0'
}
console.log(val)
if (val >= getFormatTime(new Date())) {
style.lineDash = [5, 2]
}
return style
})
.position('time*targetValue')
.shape('smooth')

多个数据,控制台只输出了一次结果

版本:4.2.9

@antvis antvis locked and limited conversation to collaborators May 16, 2023
@hustcc hustcc converted this issue into discussion #5026 May 16, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant