-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
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
[Bug] incorrect dataGroupId for old data items in universalTransition #17309
Comments
Can be supported by another case: echarts/test/universalTransition2.html Lines 482 to 492 in 7f3b2ba
where |
Complement: if Echarts cannot find Lines 234 to 239 in 7f3b2ba
|
closed via #17559 |
Version
5.3.0
Link to Minimal Reproduction
https://codepen.io/tyn1998/pen/GRxpgQq
Steps to Reproduce
dataGroupId: "",
and repeat 2 and 3 they both will workCurrent Behavior
Hi, Echarts core team!
I have read the related source code so I know where the problem occurs.
echarts/src/animation/universalTransition.ts
Line 210 in 89d57f2
When processing old data items, after executing this line, dataGroupId is wrongly assigned to a value that is belong to new data items, which is due to the factor of having
notMerge
default set to false when.setOption(newOption)
.This bug will not be exposed when data item's
groupId
is specified.Expected Behavior
Old data items should be given correct dataGroupId when item.groupId is not specified.
Environment
Any additional comments?
N.A.
The text was updated successfully, but these errors were encountered: