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


   ### What problem does this feature solve?
   If the axis labels do not fit, then autoRotate will automatically calculate 
axisLabel.rotate to make them fit.
   
   `axisLabel.interval='auto'` will cause missing/skipped labels, like this:
   
![image](https://user-images.githubusercontent.com/11670864/118852720-de9f2700-b887-11eb-9886-3df6848f7f93.png)
   
   `axisLabel.interval=0` will cause collision, like this:
   
![image](https://user-images.githubusercontent.com/11670864/118852506-b6172d00-b887-11eb-8720-fccd0694182b.png)
   
   In my opinion, autoRotate will go from 0 to 45 to 90 degrees, depending on 
the fit, like this:
   
![image](https://user-images.githubusercontent.com/11670864/118853346-83216900-b888-11eb-9b25-dffb0020c5f8.png)
   
   ### What does the proposed API look like?
   ```
   axisLabel.rotate = () => {
     if(this.doesNotFit && this.autoRotate) {
       this.rotate = calcRotateDegrees();
     }
     ...
   }
   
   ```
   <!-- 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