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 2022/11/07 10:12:55 UTC

[GitHub] [echarts] ZeekoZhu opened a new pull request, #17884: fix: make auto axis interval aware of label width and overflow options

ZeekoZhu opened a new pull request, #17884:
URL: https://github.com/apache/echarts/pull/17884

   fix #16931
   
   <!-- Please fill in the following information to help us review your PR more efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [ ] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   
   Make auto interval calculation  takes into account `axisLabel.width` and `axisLabel.overflow` options
   
   ### Fixed issues
   
   - #16931
   <!--
   - #xxxx: ...
   -->
   
   
   ## Details
   
   ### Before: What was the problem?
   
   <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   Label width is limited to 50, but the auto interval calculation is still based on the longest label width 
   
   ![image](https://user-images.githubusercontent.com/13861843/200282839-710343a1-cd6e-4dcc-bd71-5fd926f585a4.png)
   
   The auto interval calculation won't consider the wrapped label height when the label is overflowed.
   
   ![image](https://user-images.githubusercontent.com/13861843/200284038-8de8f21e-04b4-4579-936c-80efc914aad4.png)
   
   
   ### After: How does it behave after the fixing?
   
   <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. -->
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   ![image](https://user-images.githubusercontent.com/13861843/200283326-3736ebcb-9f94-446e-86f8-ea7fd342c4cd.png)
   
   ![image](https://user-images.githubusercontent.com/13861843/200284657-89d39807-6f62-4d8b-8dff-4b04bfed0918.png)
   
   
   
   
   
   ## Document Info
   
   One of the following should be checked.
   
   - [ ] This PR doesn't relate to document changes
   - [ ] The document should be updated later
   - [ ] The document changes have been made in apache/echarts-doc#xxx
   
   
   
   ## Misc
   
   ### ZRender Changes
   
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   N.A.
   
   
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merging.
   
   ### Other information
   


-- 
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] ZeekoZhu commented on pull request #17884: fix: make auto axis interval aware of label width and overflow options

Posted by GitBox <gi...@apache.org>.
ZeekoZhu commented on PR #17884:
URL: https://github.com/apache/echarts/pull/17884#issuecomment-1323369041

   @pissang Hi, do you have time to review this pr, I really need this bug fix in my project.


-- 
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] echarts-bot[bot] commented on pull request #17884: fix: make auto axis interval aware of label width and overflow options

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on PR #17884:
URL: https://github.com/apache/echarts/pull/17884#issuecomment-1305383528

   Thanks for your contribution!
   The community will review it ASAP. In the meanwhile, please checkout [the coding standard](https://echarts.apache.org/en/coding-standard.html) and Wiki about [How to make a pull request](https://github.com/apache/echarts/wiki/How-to-make-a-pull-request).
   
   ⚠️ MISSING DOCUMENT INFO: Please make sure one of the document options are checked in this PR's description. Search "Document Info" in the description of this PR. This should be done either by the author or the reviewers of the PR.


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