xxxx-p commented on issue #21504:
URL: https://github.com/apache/echarts/issues/21504#issuecomment-3881798136

   > 如果您使用的是新版 ECharts v6,可以尝试`axisLabel.lineOverflow: 
'truncate'`启用垂直方向文本行溢出截断功能。此选项应该可以满足您的需求,它自 v6.0.0 版本起已添加,但尚未提供文档说明。
   > 
   > 
[演示](https://echarts.apache.org/examples/editor.html?c=line-simple&code=RU-7DsIwDNz5ituyMPBcghgQKxILG2JIqWkjohilBopQ_50QGhpFlu07n318E8sea7xHQLtpbaNTCpRGjMZRHWrbIH4Dx_n5CkKtqDEG2DWcOBk7jZOMiZI7U5DLukBhztcq8N2XW3YcNFSgUv3oQE22qkVjMcmdpy2l1lj-G_ygcHH8jJNFIHP9zzrraT-AEu7-bIRUgrsYuy_z1dtMRUPBUqyOiZNP7M1P407M5pPeCyCvG0Xh755B9DTqVh8&enc=deflate)
   
   
   This parameter is indeed effective, but I noticed a minor issue: the 
ellipsis setting of '...' doesn't seem to take effect?
   
   <img width="540" height="228" alt="Image" 
src="https://github.com/user-attachments/assets/df160a2d-117d-436e-8272-2f7bf3c27fb6";
 />
   
   Set the height to 40 (there is actually hidden text behind it)
   
   <img width="284" height="219" alt="Image" 
src="https://github.com/user-attachments/assets/6dd82135-19e2-414b-8ef2-07404de1b15c";
 />
   
   My original implementation plan was to manually calculate the number of 
coordinate axis segments obtained through getModel(). getComponent ('xAxis'). 
axis.scale in axisLabel.flotter, calculate the coordinate axis width, and then 
calculate the coordinate axis height with the text. Then, manually divide the 
text and return it for display. If there is dataZoom, I also need to manually 
calculate the text height and set it to grid. bottom, otherwise the coordinate 
axis text will stack with the dataZoom at the bottom. This solution is quite 
clumsy, and I couldn't think of a better solution before. If this parameter can 
achieve this effect, it is indeed a very simple and useful parameter
   


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