In Ant Design Pro, after the legend of Charts.Pie is disabled, the disabled legend disappears after updating the data. How to keep the number of legends unchanged?

in Ant Design Pro, the items in the legend of Charts.Pie can be clicked, and you can change whether the item is displayed in the pie chart after clicking, which is good, but the items that are not displayed will disappear after the data is updated, although the number of legends in the new data is the same as the original, only the y value has been changed.

this question has been raised in github"s issue: https://github.com/ant-design., but unfortunately it has not been explained or explained for some reason. Does anyone know the solution?

not really, if you can disable the event after the legend is clicked.

Jan.12,2022
Menu