ataft opened a new issue #14997:
URL: https://github.com/apache/echarts/issues/14997


   ### What problem does this feature solve?
   If axis labels do not fit, axisLabel.autoZoom will automatically put a 
scroll/zoom on the chart. See the example here:
   
![autoZoom](https://user-images.githubusercontent.com/11670864/118861203-16f73300-b891-11eb-800c-a829e6ae1ae2.gif)
   
   
   ### What does the proposed API look like?
   ```
   axisLabel.autoZoom = () => {
     if(axisLabel.doesNotFit) {
       //calculate spacing between labels and put a zoom/scrool on the chart 
axis
     }
     ...
   }
   
   ```
   <!-- 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.

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