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/05/19 16:57:07 UTC

[GitHub] [echarts] ataft opened a new issue #14996: New Feature: axisLabel.autoRotate

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:
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] ataft commented on issue #14996: New Feature: axisLabel.autoRotate

Posted by GitBox <gi...@apache.org>.
ataft commented on issue #14996:
URL: https://github.com/apache/echarts/issues/14996#issuecomment-844319499


   If `axisLabel.autoRotate` is implemented, then issue https://github.com/apache/echarts/issues/9265 needs to be resolved so that axis name and axis label do not overlap, as shown here:
   ![image](https://user-images.githubusercontent.com/11670864/118858170-b31f3b00-b88d-11eb-9580-5cc3a0c43d85.png)
   


-- 
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:
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 #14996: New Feature: axisLabel.autoRotate

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


   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.

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