change comment
diff --git a/src/chart/sunburst/SunburstPiece.ts b/src/chart/sunburst/SunburstPiece.ts
index a2b28b6..a44b7b2 100644
--- a/src/chart/sunburst/SunburstPiece.ts
+++ b/src/chart/sunburst/SunburstPiece.ts
@@ -219,7 +219,7 @@
}
else {
if (!textAlign || textAlign === 'center') {
- // set the position of label in center when angle is 2π & r0 is 0
+ // Put label in the center if it's a circle
if (angle === 2 * Math.PI && layout.r0 === 0) {
r = 0;
}
diff --git a/test/sunburst-label.html b/test/sunburst-label.html
index e887222..f7b7c2c 100644
--- a/test/sunburst-label.html
+++ b/test/sunburst-label.html
@@ -102,7 +102,7 @@
var chart = testHelper.create(echarts, 'main0', {
title: [
- 'Set the position of label in center when angle is 2π'
+ 'Put label in the center if it\'s a circle'
],
option: option
// height: 300,