You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by wa...@apache.org on 2022/06/21 03:31:39 UTC

[echarts-doc] branch master updated: fix(pie): add missing option `percentPrecision`, resolves apache/echarts#15167

This is an automated email from the ASF dual-hosted git repository.

wangzx pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/echarts-doc.git


The following commit(s) were added to refs/heads/master by this push:
     new e260b2f2 fix(pie): add missing option `percentPrecision`, resolves apache/echarts#15167
e260b2f2 is described below

commit e260b2f2a63686e31095b2e046acaf54b2633b15
Author: plainheart <yh...@all-my-life.cn>
AuthorDate: Tue Jun 21 11:30:10 2022 +0800

    fix(pie): add missing option `percentPrecision`, resolves apache/echarts#15167
---
 en/option/series/pie.md | 6 ++++++
 zh/option/series/pie.md | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/en/option/series/pie.md b/en/option/series/pie.md
index 4fe3d13d..7c19fd0b 100644
--- a/en/option/series/pie.md
+++ b/en/option/series/pie.md
@@ -84,6 +84,12 @@ Whether to enable the strategy to avoid labels overlap. Defaults to be enabled,
 
 Whether to show sector when all data are zero.
 
+## percentPrecision(number) = 2
+
+<ExampleUIControlNumber min="0" default="2" />
+
+The precision of the percentage value. The default value is `2`.
+
 {{ use: partial-cursor() }}
 
 {{ use: partial-rect-layout-width-height(
diff --git a/zh/option/series/pie.md b/zh/option/series/pie.md
index 257a0d08..5527e2e0 100644
--- a/zh/option/series/pie.md
+++ b/zh/option/series/pie.md
@@ -107,6 +107,12 @@ const option = {
 
 是否在数据和为`0`(一般情况下所有数据为`0`) 的时候仍显示扇区。
 
+## percentPrecision(number) = 2
+
+<ExampleUIControlNumber min="0" default="2" />
+
+饼图百分比数值的精度,默认保留小数点后两位。
+
 {{ use: partial-cursor() }}
 
 {{ use: partial-rect-layout-width-height(


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org