You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/06/23 06:09:24 UTC
[incubator-echarts] branch label-enhancement updated: change(bar):
change to fade out animation when series is removed. #12543
This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch label-enhancement
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/label-enhancement by this push:
new 895cc00 change(bar): change to fade out animation when series is removed. #12543
895cc00 is described below
commit 895cc0017ea3f1630508db43ef35d2e5b5f1f93e
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Jun 23 14:08:51 2020 +0800
change(bar): change to fade out animation when series is removed. #12543
---
src/chart/bar/BarView.ts | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/chart/bar/BarView.ts b/src/chart/bar/BarView.ts
index 2b2e7f2..617a554 100644
--- a/src/chart/bar/BarView.ts
+++ b/src/chart/bar/BarView.ts
@@ -704,8 +704,8 @@ function removeRect(
// Not show text when animating
el.removeTextContent();
updateProps(el, {
- shape: {
- width: 0
+ style: {
+ opacity: 0
}
}, animationModel, dataIndex, function () {
el.parent && el.parent.remove(el);
@@ -720,8 +720,8 @@ function removeSector(
// Not show text when animating
el.removeTextContent();
updateProps(el, {
- shape: {
- r: el.shape.r0
+ style: {
+ opacity: 0
}
}, animationModel, dataIndex, function () {
el.parent && el.parent.remove(el);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org