Skip to content

Commit

Permalink
feat: doc for pie-series.animationTypeUpdate apache/echarts#11029
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovilia committed Sep 6, 2019
1 parent 265dc21 commit dc14a9b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cn/option/series/pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,9 +182,14 @@

## animationType(string) = 'expansion'
初始动画效果,可选
+ `'expansion'` 默认研圆弧展开的效果
+ `'expansion'` 默认沿圆弧展开的效果
+ `'scale'` 缩放效果,配合设置 `animationEasing='elasticOut'` 可以做成 popup 的效果。

## animationTypeUpdate(string) = 'transition'
更新数据时的动画效果,可选:
+ `'transition'` 通过改变起始和终止角度,从之前的数据过渡到新的数据。
+ `'expansion'` 数据将整体重新沿圆弧展开。

{{use:partial-animation(
prefix="#",
galleryEditorPath=${galleryEditorPath}
Expand All @@ -195,7 +200,6 @@
)}}



{{ target: partial-pie-label }}
#${prefix} show(boolean) = false
{{ if: ${position} }}
Expand Down
5 changes: 5 additions & 0 deletions en/option/series/pie.md
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ Initial animation type.
+ `'expansion'` Default expansion animation.
+ `'scale'` Scale animation. You can use it with `animationEasing='elasticOut'` to have popup effect.

## animationTypeUpdate(string) = 'transition'
Animation type when data updates.
+ `'transition'` Changing start and end angle of each sector from the old value to new value.
+ `'expansion'` The whole pie expands again.

{{use:partial-animation(
prefix="#",
galleryEditorPath=${galleryEditorPath}
Expand Down

0 comments on commit dc14a9b

Please sign in to comment.