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

   <!-- 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?
   
   Fix the problem of xAxis label overflow when `grid.contailLabel` is true.
   
   
   
   ### Fixed issues
   
   - fix #16875
   
   
   
   ## Details
   
   ### Before: What was the problem?
   
   As is described in 
https://github.com/apache/echarts/issues/16875#issuecomment-1097508437, 
overflow of x-axis label is not considered when applying `grid.containLabel`. 
   
   <img width="552" alt="before#16875" 
src="https://user-images.githubusercontent.com/14244944/163195891-268ada63-1e0d-44da-9cb3-72614f4e1b22.png";>
   
   ### After: How is it fixed in this PR?
   
   Judgements whether the label will exceed boundary are added and grid will be 
adjusted accordingly.
   
   <img width="455" alt="after#16875" 
src="https://user-images.githubusercontent.com/14244944/163196358-c89bd83f-cc8c-4923-9586-6924841ba22e.png";>
   
   ## Misc
   
   <!-- ADD RELATED ISSUE ID WHEN APPLICABLE -->
   
   - [ ] The API has been changed (apache/echarts-doc#xxx).
   - [ ] This PR depends on ZRender changes (ecomfe/zrender#xxx).
   
   ### Related test cases or examples to use the new APIs
   
   Attached
   ### Merging options
   
   - [x] Please squash the commits into a single one when merging.
   
   


-- 
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: [email protected]

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