You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by "MykolaSutkovyi (via GitHub)" <gi...@apache.org> on 2023/05/05 10:33:55 UTC

[GitHub] [echarts] MykolaSutkovyi opened a new issue, #18594: [Bug] Label position issue when using alignTo = "edge"

MykolaSutkovyi opened a new issue, #18594:
URL: https://github.com/apache/echarts/issues/18594

   ### Version
   
   5.4.1
   
   ### Link to Minimal Reproduction
   
   https://codesandbox.io/s/echarts-overflow-issue-yfi32s?file=/index.js
   
   ### Steps to Reproduce
   
   1. Create a chart with label.alignTo = "edge".
   2. Add formatter and rich section (align = "left") 
   3. Decrise widow width
   
   For some reason, one of the labels was not pushed to the container edge. 
   
   Live example: [https://codesandbox.io/s/echarts-overflow-issue-yfi32s?file=/index.js](url)
   Recording: [https://s12.gifyu.com/images/Screen-Recording-2023-05-05-at-1.gif](url)
   
   
   
   ### Current Behavior
   
   The label moved to the chart event it has a free space.
   
   ### Expected Behavior
   
   The label takes free space.
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


-- 
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.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] helgasoft commented on issue #18594: [Bug] Label position issue when using alignTo = "edge"

Posted by "helgasoft (via GitHub)" <gi...@apache.org>.
helgasoft commented on issue #18594:
URL: https://github.com/apache/echarts/issues/18594#issuecomment-1536489175

   > For some reason, one of the labels was not pushed to the container edge.
   
   If you want label to stay on the **right** edge, then do not add _rich.align:"**left**"_.


-- 
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] MykolaSutkovyi commented on issue #18594: [Bug] Label position issue when using alignTo = "edge"

Posted by "MykolaSutkovyi (via GitHub)" <gi...@apache.org>.
MykolaSutkovyi commented on issue #18594:
URL: https://github.com/apache/echarts/issues/18594#issuecomment-1537981524

   The problem is the label adds more space than it needs to render a text. I need exact alignment as in configuration but without extra space. 


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