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:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to