You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2019/05/16 02:57:55 UTC

[GitHub] [incubator-echarts] CatWithWings edited a comment on issue #10471: expandAndCollapse 收缩tree图渲染异常,旧分支没有擦除

CatWithWings edited a comment on issue #10471: expandAndCollapse 收缩tree图渲染异常,旧分支没有擦除
URL: https://github.com/apache/incubator-echarts/issues/10471#issuecomment-492896166
 
 
   > You can see [here](https://github.com/apache/incubator-echarts/blob/master/src/chart/tree/TreeView.js#L104).
   So, does the data I pass in have nothing to do with the diff of the graph? 
   Try this options:
   `
          const options = {
               tooltip: {
                   trigger: 'item',
                   triggerOn: 'mousemove'
              },
              series: [
               {
                   type: 'tree',
   
                   data: [{
                       name: "Root",
                       children: [
                           {
                               "name": "ss",
                               "children": [
                                   {
                                       "id": "71",
                                       "name": "alan",
                                       "children": [
                                           {
                                               "id": "55",
                                               "name": "test11"
                                           },
                                           {
                                               "id": "02",
                                               "name": "test12"
                                           }
                                       ]
                                   },
                                   {
                                       "id": "24",
                                       "name": "liu",
                                       "children": [
                                           {
                                               "id": "71",
                                               "name": "测25试2222222222222222",
                                           }
                                       ]
                                   }
                               ]
                           }
                       ]
                   }],
   
                   top: '1%',
                   left: '7%',
                   bottom: '1%',
                   right: '20%',
   
                   symbolSize: 7,
   
                   label: {
                       normal: {
                           position: 'left',
                           verticalAlign: 'middle',
                           align: 'right',
                           fontSize: 9
                       }
                   },
   
                   leaves: {
                       label: {
                           normal: {
                               position: 'right',
                               verticalAlign: 'middle',
                               align: 'left'
                           }
                       }
                   },
   
                   expandAndCollapse: true,
                   initialTreeDepth: 3,
                   animationDuration: 550,
                   animationDurationUpdate: 750
               }
   `
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

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