We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
当使用自定义 shape 时,进行 legend 筛选后,进行 autofit 后 ,element 位置会发生错误(element 的位置被固定在初始位置了)
No response
Please select / 请选择
The text was updated successfully, but these errors were encountered:
在使用 antvis/G2 时,自定义形状(Shape)可能会导致在进行 legend 筛选和 autofit 操作后,元素位置出现错误。这通常是因为自定义形状在图例筛选后没有正确更新其位置。
确保正确注册和使用自定义形状:
G2.register('shape.${mark}.${shape}', Shape)
mark.encode
mark.style
检查自定义形状的渲染函数:
document.createElement
更新图表布局:
chart.render()
调试自定义形状逻辑:
如果这些建议没有解决问题,可能需要进一步检查自定义形状的实现细节,或者提供一个最小可复现的代码示例以便更具体地帮助解决问题。
Sorry, something went wrong.
No branches or pull requests
Describe the bug / 问题描述
当使用自定义 shape 时,进行 legend 筛选后,进行 autofit 后 ,element 位置会发生错误(element 的位置被固定在初始位置了)
Reproduction link / 复现链接
No response
Steps to Reproduce the Bug or Issue / 重现步骤
20250214103403_rec_.mp4
Version / 版本
Please select / 请选择
OS / 操作系统
Browser / 浏览器
The text was updated successfully, but these errors were encountered: