AsrithaPrasanna opened a new issue #16743:
URL: https://github.com/apache/echarts/issues/16743


   ### Version
   
   5.3.0
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   I am trying to add zoom in and out for my tree chart. Below are the options 
that I tried: Though I see dataZoom buttons in the toolbox, clicking on them 
does not zoom in or out. I can however zoom in using mouse when I enable roam: 
true, but not via the buttons. I am looking for zooming in and out using 
buttons. Kindly let me know if this is a known issue.
   
   this.myChart.setOption(
               (option = {
                 tooltip: {
                   trigger: 'item',
                   triggerOn: 'mousemove'
                 },
                 toolbox: {
                   show : true,
                   feature : {
                     restore : {show: true},
                     dataZoom : {
                       show : true
                     }
                   }
                 },
                 series: [
                   {
                     type: 'tree',
                     data: [tree],
                     // roam: true,
                   } 
                 ]
               })
             );
   
   ### Current Behavior
   
   zoom does not work in dataZoom buttons in toolbox for tree.
   
   ### Expected Behavior
   
   When user clicks in zoom in, it should zoom in similar it to how it does 
when roam is set to true via mouse. I am looking for same feature using buttons.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to