antvis/G2



The issue has been closed
使用 lineY 绘制辅助线设置 arrow 时, 对 lineY进行更新, arrow 会重复进行绘制 #6396
mosaice posted onGitHub
问题描述
参考 官网中的例子 如果后续对 lineY 数据进行更新,会出现绘制错误
重现链接
https://codesandbox.io/s/lucid-colden-mkycwc?file=/index.ts
重现步骤
- 设置 lineY 并设置 style('arrow', true)
- chart.render() , 渲染完成后更新lineY 数据并再次 render
预期行为
预期: 箭头应该会随 lineY 变化, 实际: 除了箭头会绘制在对应的新值位置上, 会有多余的箭头出现在错误位置
平台
- 操作系统: [macOS, Windows, Linux, React Native ...]
- 网页浏览器: [Google Chrome, Safari, Firefox]
屏幕截图或视频(可选)
补充说明(可选)
#4845 No response