antvis/G2
The issue has been closed
图形元素的style属性回调方法只执行了一次 #5013
Forge-nb posted onGitHub
如下代码: 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