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

[GitHub] [echarts] ragava28 opened a new issue, #18735: [Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

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

   ### Version
   
   5.4.2
   
   ### Link to Minimal Reproduction
   
   https://codepen.io/ragava28/pen/dyQPZNb?editors=0010
   
   ### Steps to Reproduce
   
   [https://codepen.io/ragava28/pen/dyQPZNb?editors=0010](url)
   
   1. Click on zoom button from toolbox in any chart.
   2. Which enables zoom in all connected charts , so users can zoom from any connected chart.
   3. After zooming , Zoom reset button gets enabled, but only from the chart in which user performed zoom in operation.
   4. It should also get enabled for all the connected charts .
   
   
   Any suggestions to enable zoom reset for all the connected charts
   
   ### Current Behavior
   
   Zoom reset button gets enabled, but only from the chart in which user performed zoom in operation.
   
   
   ### Expected Behavior
   
   Zoom reset button should get enabled for all connected charts .
   
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   ![image](https://github.com/apache/echarts/assets/14935973/e684bebd-f8d8-43fc-9784-2ae75ff7715b)
   
   We have connected charts as shown in above screen shot , in which each row is a line chart connected in x-axis, and we are hiding zoom & zoom reset for all other charts except 1st row. 
   
   As all are connected charts , user clicks on zoom button in 1st row chart from tool box, and he can zoom from any connected chart (like 2nd ,3rd ..etc.) , but zoom reset is working only from the chart which user has zoomed .
   
   Any way to enable zoom reset on all charts.   Any suggestion is well appreciated
   
   


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


[GitHub] [echarts] ragava28 commented on issue #18735: [Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

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

   these chart are going to have high data density , zooming using dataZoom will make it difficult for user to interact with chart.  


-- 
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] ragava28 commented on issue #18735: [Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

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

   I already tried it, please see below sample .
   [https://codepen.io/ragava28/pen/KKrwbYP?editors=0010](url)
   
   In the sample I removed toolbox code for chart 2 & kept it for chart1 & both charts are connected.  after this change, Zoom & zoom reset both functionality are broken.


-- 
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] helgasoft commented on issue #18735: [Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

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

   sorry, I meant "only one **visible** toolbox". 
   But once hidden, zooming cannot be started on that second chart and has to be initiated always from the first. Which is a bad option.
   Since _toolbox_ is a poor choice, why not do it thru _dataZoom_ ?
   I think the following is pretty good UI, with or without the (first) visible dataZoom. And functionality is the same.
   ```
   option1= {...
     toolbox: { feature: { restore:{} } },
     dataZoom: [{}, {type:'inside'}],
   ...}
   option2= {...
     dataZoom: [{show:false}, {type:'inside'}],
   ...}
   ```


-- 
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] helgasoft commented on issue #18735: [Bug] Connected Charts Zoom & Zoom reset behaviors are not consistent

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

   The simple solution, since zoom/reset is shared, is to use **only one** toolbox for both charts. Preferably positioned between them. 


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