pissang commented on a change in pull request #16425:
URL: https://github.com/apache/echarts/pull/16425#discussion_r809816631



##########
File path: src/chart/sunburst/SunburstPiece.ts
##########
@@ -219,7 +219,13 @@ class SunburstPiece extends graphic.Sector {
             }
             else {
                 if (!textAlign || textAlign === 'center') {
-                    r = (layout.r + layout.r0) / 2;
+                    // set the position of label in center when angle is 2π & 
r0 is 0

Review comment:
       It will be more clear to be commented 
   ```
   // Put label in the center if it's a circle.
   ```
   Current comment is just an plain explaination on the code.




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