akashsonune commented on code in PR #21306:
URL: https://github.com/apache/echarts/pull/21306#discussion_r2419513203


##########
src/chart/sunburst/SunburstPiece.ts:
##########
@@ -233,8 +233,9 @@ class SunburstPiece extends graphic.Sector {
             }
             else {
                 if (!textAlign || textAlign === 'center') {
-                    // Put label in the center if it's a circle
-                    if (angle === 2 * Math.PI && layout.r0 === 0) {
+                    // Put label in the center if it's a full circle, or if 
it's a root-level node with no inner radius
+                    // and there's only one sibling (to avoid overlapping 
labels)

Review Comment:
   done



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

Reply via email to