FrankChencc opened a new pull request #16425: URL: https://github.com/apache/echarts/pull/16425
…lose #16296 <!-- Please fill in the following information to help us review your PR more efficiently. --> ## Brief Information This pull request is in the type of: - [x] bug fixing - [ ] new feature - [ ] others ### What does this PR do? Fix a bug that the Sunburst center text cannot be centered vertically. <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. --> ### Fixed issues <!-- - #xxxx: ... --> https://github.com/apache/echarts/issues/16296 ## Details ### Before: What was the problem? <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. --> when angle is 2π, the position of label cannot be the center of the circle, which lead to the text of label cannot be centered vertically in Sunburst. <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->  ### After: How is it fixed in this PR? <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. --> set the position of label in center when angle is 2π so that the text of label can be centered vertically in Sunburst. <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->  ## Misc <!-- ADD RELATED ISSUE ID WHEN APPLICABLE --> - [ ] The API has been changed (apache/echarts-doc#xxx). - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx). ### Related test cases or examples to use the new APIs N.A. ## Others ### Merging options - [ ] Please squash the commits into a single one when merging. ### Other information -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
