Skip to content

Commit ec22a7e

Browse files
committed
测试中的Label增加formatter属性设置
1 parent 269b126 commit ec22a7e

File tree

1 file changed

+3
-1
lines changed
  • src/test/java/com/github/abel533/echarts/samples/pie

1 file changed

+3
-1
lines changed

src/test/java/com/github/abel533/echarts/samples/pie/PieTest7.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ public void test() {
6363
new Funnel().x("25%").width("50%").funnelAlign(X.left).max(1548))));
6464

6565
int idx = 1;
66-
basic.series(getPie(idx++).center("50%", "45%").radius("50%"));
66+
Pie pie = getPie(idx++).center("50%", "45%").radius("50%");
67+
pie.label().normal().show(true).formatter("{b}{c}({d}%)");
68+
basic.series(pie);
6769
//加入
6870
option.options(basic);
6971
//构造11个数据

0 commit comments

Comments
 (0)