Ovilia commented on issue #8371: sunburst自动下钻
URL: 
https://github.com/apache/incubator-echarts/issues/8371#issuecomment-390543382
 
 
   
https://github.com/apache/incubator-echarts/commit/ab621a4497cd8a02ec75bb016a81e656f512cc7a
 这里做了支持,下个版本可以以这样的形式调用:
   
   ```
   chart.dispatchAction({
       type: 'sunburstRootToNode',
       targetNode: 'nike'
   });
   ```
   
   其中 targetNode 对应系列中一个 node 的 id,比如:
   ```
   {
       name: 'Uncle Nike',
       id: 'nike'
       children: [{
           name: 'Cousin Betty',
           value: 1
       }, {
           name: 'Cousin Jenny',
           value: 2
       }]
   }
   ```
   
   如果急着用,可以自己 build 一下。`npm install; node build/build.js --release`

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


With regards,
Apache Git Services

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

Reply via email to