plainheart edited a comment on issue #13157: URL: https://github.com/apache/incubator-echarts/issues/13157#issuecomment-676836144
It seems that there is no direct and simple way to get the children nodes of clicked level node in the breadcrumb. There is a workaround for your reference. ```js myChart.on('click', function(e) { if (e.selfType !== 'breadcrumb') { return; } var series = myChart.getModel().getSeriesByName('Disk Usage')[0]; // or use getSeriesByIndex(index) var allNodes = []; flattenNodes(series.getViewRoot(), allNodes); var clickedNode = allNodes.find(function(t) { return t.dataIndex === e.nodeData.dataIndex; }); var children = clickedNode.children; console.log('clicked', e.nodeData.dataIndex, e.nodeData.name, 'children nodes', children); }) function flattenNodes(root, nodes) { nodes.push(root); if (root.children) { root.children.forEach(function(c) { flattenNodes(c, nodes); }); } } ``` ---------------------------------------------------------------- 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: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@echarts.apache.org For additional commands, e-mail: commits-h...@echarts.apache.org