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/02/07 04:35:15 UTC

[GitHub] [echarts] xiaolannuoyi commented on issue #14219: legend.textStyle.width Can text overflow when maximum width is set

xiaolannuoyi commented on issue #14219:
URL: https://github.com/apache/echarts/issues/14219#issuecomment-774595465


   Demo has been provided [https://codepen.io/xiaolannuoyi/pen/abBNEzR?editors=0010](url)
   `legend.textStyle.width` is a fixed length,I want the maximum length,`legend.textStyle.maxWidth`,
   When the length of the text is short, it is auto, when it is long, it exceeds the maximum length, and the text overflow is displayed.
   <img width="801" alt="WechatIMG12351" src="https://user-images.githubusercontent.com/21079721/107136713-c2165900-6940-11eb-80c0-0701f7d23168.png">
   
   but, I want
   <img width="804" alt="WX20210207-122301@2x" src="https://user-images.githubusercontent.com/21079721/107136726-d8bcb000-6940-11eb-8aa3-545cb78fbb78.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