You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "luccabimachine (via GitHub)" <gi...@apache.org> on 2023/11/14 19:04:25 UTC

[I] [Feature] Custom breadcrumb for Treemap [echarts]

luccabimachine opened a new issue, #19299:
URL: https://github.com/apache/echarts/issues/19299

   ### What problem does this feature solve?
   
   Hello. 
   I have been creating a treemap chart in my application and wanted to create a custom breadcrumb (that is clickeable just like the original echarts treemap breadcrumb, as in, you can go back and forth, drill down, drill up, etc, just by clicking in a member within the breadcrumb). Issue is that I can't seem to be able to dispatch the action to drill etc basically I can't find a solution to implement this custom click that performs the same action as the original breadcrumb would.
   
   ### What does the proposed API look like?
   
   Perhaps something along those lines
   
   chart.on('click', 'breadcrumb', function (params) {
         // get the dataIndex of clicked node
       })
   
       // this would select the node or basically an action that does same as breadcrumb does when it is clicked
       chart.dispatchAction({
         type: 'treemapSelectNode',
         dataIndex: (index of selected node)
       });


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #19299: [Feature] Custom breadcrumb for Treemap
URL: https://github.com/apache/echarts/issues/19299


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19299:
URL: https://github.com/apache/echarts/issues/19299#issuecomment-3568335800

   This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #19299:
URL: https://github.com/apache/echarts/issues/19299#issuecomment-3539353031

   This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "luccabimachine (via GitHub)" <gi...@apache.org>.
luccabimachine commented on issue #19299:
URL: https://github.com/apache/echarts/issues/19299#issuecomment-1816226982

   D:


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "luccabimachine (via GitHub)" <gi...@apache.org>.
luccabimachine commented on issue #19299:
URL: https://github.com/apache/echarts/issues/19299#issuecomment-1814362072

   > something to experiment with
   > 
   > ```
   > myChart.on('click', 'series', function (p) {
   >   if (p.selfType=='breadcrumb') {
   >     // get the dataIndex of clicked node
   >     console.log(p.nodeData.name+' '+p.nodeData.dataIndex)
   >     myChart.dispatchAction({
   >       type: 'select',
   >       dataIndex: p.nodeData.dataIndex
   >     });
   >   }
   > })
   > ```
   
   thanks for the reply. i try to dispatch that action but it doesn't change anything in my chart, regardless of dataIndex value i pass.


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] [Feature] Custom breadcrumb for Treemap [echarts]

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #19299:
URL: https://github.com/apache/echarts/issues/19299#issuecomment-1813320015

   something to experiment with
   ```
   myChart.on('click', 'series', function (p) {
     if (p.selfType=='breadcrumb') {
       // get the dataIndex of clicked node
       console.log(p.nodeData.name+' '+p.nodeData.dataIndex)
       myChart.dispatchAction({
         type: 'select',
         dataIndex: p.nodeData.dataIndex
       });
     }
   })
   ```


-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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