susiwen8 opened a new pull request, #21598:
URL: https://github.com/apache/echarts/pull/21598

   ## Summary
   
   Fixes #21133.
   
   When sunburstRootToNode drills into a node, that node can become a full 
360-degree annular sector. Its label represents the centered view root rather 
than an angular slice, so the label should be placed at the chart center and 
should not inherit radial/tangential rotation.
   
   This PR updates the sunburst label layout for full-circle centered labels 
and adds a Jest regression test covering both center position and zero rotation.
   
   ## Root Cause
   
   SunburstPiece only centered labels for full circles when r0 === 0. After 
drilldown, the view root is a full annular sector with r0 > 0, so the label was 
placed at the annulus midpoint and still received radial rotation.
   
   ## Verification
   
   - git diff --check
   - eslint src/chart/sunburst/SunburstPiece.ts 
test/ut/spec/series/sunburst.test.ts
   - tsc --noEmit
   - jest --config test/ut/jest.config.cjs --coverage=false --runInBand 
test/ut/spec/series


-- 
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]

Reply via email to