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

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


The following commit(s) were added to refs/heads/master by this push:
     new e0dc26c  add recurrent remove node of the tree view
e0dc26c is described below

commit e0dc26c3fb02b43a0b4c07e6cec6789fc5cb7837
Author: deqingli <annong...@gmail.com>
AuthorDate: Sun Apr 8 16:13:03 2018 +0800

    add recurrent remove node of the tree view
---
 test/tree-addNode.html                                    |  4 ++--
 test/{tree-addNode.html => tree-recurrentRemoveNode.html} | 11 +++++------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/test/tree-addNode.html b/test/tree-addNode.html
index fcb6923..f2a8ed2 100644
--- a/test/tree-addNode.html
+++ b/test/tree-addNode.html
@@ -33,7 +33,7 @@
                             {
                                 "name": "flex",
                                 "children": [
-                                    {"name": "FlareVis", "value": 4116}
+                                    {"name": "FlareVis", "value": 4116, 
symbolSize: 20}
                                 ]
                             },
                             {
@@ -90,7 +90,7 @@
                                 bottom: '22%',
                                 right: '20%',
 
-                                symbolSize: 7,
+                                symbolSize: 15,
                                 orient: 'RL',
 
                                 label: {
diff --git a/test/tree-addNode.html b/test/tree-recurrentRemoveNode.html
similarity index 94%
copy from test/tree-addNode.html
copy to test/tree-recurrentRemoveNode.html
index fcb6923..bde818b 100644
--- a/test/tree-addNode.html
+++ b/test/tree-recurrentRemoveNode.html
@@ -106,7 +106,7 @@
                                             align: 'right'
                                     }
                                 },
-                                
+                    
                                 expandAndCollapse: true,
                                 animationDuration: 550,
                                 animationDurationUpdate: 750
@@ -114,10 +114,9 @@
                         ]
                     });
 
-                     setTimeout(function() {
-                        var cloneData = echarts.util.clone(data);
-                        var appendNode = 
cloneData.children[1].children.splice(2, 1);
-                        cloneData.children.push(appendNode[0]);
+                    var cloneData = echarts.util.clone(data);
+                    setInterval(function() {
+                        cloneData.children[1].children.splice(0, 1);
                         chart.setOption({
                             series: [{
                                 type: 'tree',
@@ -126,7 +125,7 @@
                             }]
                         }, false);
                     }, 1000);
-
+ 
                 });
         </script>
     </body>

-- 
To stop receiving notification emails like this one, please contact
deqin...@apache.org.

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

Reply via email to