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 2021/08/13 16:10:15 UTC

[GitHub] [echarts] sonirathore01 opened a new issue #15532: Support to configure the trigger event of expandAndCollaps option on `double click` event. (In the tree chart)

sonirathore01 opened a new issue #15532:
URL: https://github.com/apache/echarts/issues/15532


   ### What problem does this feature solve?
   
    ```
   -- I'm using echarts with angular technology here is my version details :
       ngx-echarts: 4.2.2
       echarts: 4.4.0
   ```
   ```
   -- Requirements of feature : 
   ```
    --  I'm trying to implement a tree chart with a formatter function and rich APIs. 
         I need to implement the feature to display selected node details next to the 
         chart so we can see all details related to that selected node and perform any
         other actions like add edit, delete.
   
    -- I need to implement this functionality on the click event of node and I have to highlight that selected node and I’ve used 
       ‘chartClick’ event to catch the click event and for highlighting the node I’m using `rich` APis from echarts.
   
    -- I’m using the expand and collapse feature to expand and collapse the node. Now, the problem is I’m using the click event to select 
         the node, and at the same time Expand and collapse action is also happening, and that is the problem because when the user will 
         click to the node to select it at the same time node will perform expand and collapse action if a node has any child. So, it's a bad 
         user experience.
   
   --  My requirement is to perform an expand and collapse action on `Double click` instead of single click so when a user would like to 
        expand and collapse the node then they will click double click instead of ‘single click’ on the node.
   
   --  The default behaviour of expand and collapse happens on click event and it accepts only boolean values. I’ve checked the 
        documentation and at lots of other places to change its event to double click instead of single click but I was not able to find any 
        solution.
   
   --  So, I just want to have support to configure the trigger event of expand collapse action on a double click event instead of a single 
        click.
   
    Here is the link to a small demo to understand my requirements https://codepen.io/sonirathore01/pen/xxdBPZw.
   
    
   
   ### What does the proposed API look like?
   **expandAndCollapse should have option to configure trigger event as follow **
   ``` 
   chart.setOption({
       series: [
           {
                name: "Hierarchy",
                type: "tree",
                expandAndCollapse: {
                triggerOn: "doubleClick",
                }]
         }```
   
   <!-- 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.

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


[GitHub] [echarts] echarts-bot[bot] commented on issue #15532: Support to configure the trigger event of expandAndCollaps option on `double click` event. (In the tree chart)

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #15532:
URL: https://github.com/apache/echarts/issues/15532#issuecomment-898570068


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that it contains **a minimum reproducible demo** and necessary **images** to illustrate. Otherwise, our committers will ask you to do so.
   
   *A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.
   
   You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical question.
   
   If you are interested in the project, you may also subscribe our [mailing list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


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