Describe the bug / 问题描述
The state of custom legend item isn't restored when updating the data.
Reproduction link / 复现链接
https://codesandbox.io/p/sandbox/compassionate-mcclintock-ytxnsk
Steps to Reproduce the Bug or Issue / 重现步骤
- Click legend item with name Type 1
- Click Update Data button.
Expected behavior
legend item with name Type 1 is active (colored) or it should stay disabled but blue column should be hidden.
Actual behavior
legend item with name Type 1 is disabled (gray) but blue column is visible.
Version / 版本
@ant-design/charts - 1.4.2
@ant-design/plots - 1.2.6
OS / 操作系统
Browser / 浏览器