tyn1998 opened a new pull request, #17611: URL: https://github.com/apache/echarts/pull/17611
<!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information Multiple level drill down support for the [universalTransition](https://echarts.apache.org/en/option.html#series-bar.universalTransition) feature. This pull request is in the type of: - [x] bug fixing - [x] new feature - [ ] others ### What does this PR do? In this PR, a new property `childGroupId` [comes up](https://github.com/apache/echarts/issues/16152#issuecomment-1207182380) and together with `groupId`, they can build multiple "parent-child" relationships between options. It is necessary to decide whether `groupId` or `childGroupId` is used as key in the keyGetter funtion to make sure that universalTransition animation does right, so I figured out a way to handle this, please see the block comments in code (that "direction" part). A test html file is added to illustrate how to use `childGroupId` with `groupId` to implement the effect of multiple level down drill. Also fixed #17309 by the way, so #17559 can be closed if this PR is merged (I just cherry picked the commit in that PR to this branch). ### Fixed issues - #16152 - #17309 ## Details ### Before: What was the problem? <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. --> <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> Only 1 level drill down is allowed. ### After: How does it behave after the fixing? <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. --> <!-- ADD SCREENSHOT HERE IF APPLICABLE. --> Multiple level drill down is allowed: https://user-images.githubusercontent.com/32434520/188168209-b26f4e0e-65de-4c96-9c9b-52c6d6e10c39.mov ## Document Info One of the following should be checked. - [ ] This PR doesn't relate to document changes - [x] The document should be updated later - [ ] The document changes have been made in apache/echarts-doc#xxx ## Misc ### ZRender Changes - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs N.A. ## Others ### Merging options - [x] Please squash the commits into a single one when merging. ### Other information This small feature is an OPSS2022 [task](https://summer-ospp.ac.cn/#/org/prodetail/22ffc0289), thank you guys from echarts core team to give me so much help when I was developing it! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org