You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/18 08:52:04 UTC

[GitHub] [incubator-echarts] ding-js opened a new issue #11867: Allow pass nodeClick as a callback function for sunburst

ding-js opened a new issue #11867: Allow pass nodeClick  as a callback function for sunburst
URL: https://github.com/apache/incubator-echarts/issues/11867
 
 
   ### What problem does this feature solve?
   Deal with advanced user behavior and reduce server performance costs.
   For example, our data structure with many levels are complex and we only want to show the top level, then we will load child data when user click the top level.
   
   ### What does the proposed API look like?
   ```js
   {
     nodeClick: ({ node, toRoot }) => {
       if (node.children) {
         toRoot();
       } else {
         // 1. load children data
         // 2. refresh chart
       }
     };
   }
   ```
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->

----------------------------------------------------------------
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: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org