Version
最新版
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.2
Steps to Reproduce
Current Behavior
Expected Behavior
横坐标标签的第一个值应该左对齐,第二个值应该由对齐
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
2条答案
按热度按时间6rvt4ljy1#
@zhanghaosysu It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people and get helped, we'd like to suggest using English next time. 🤗
TRANSLATED
TITLE
[Bug] Setting align in the rich field does not take effect, but other attributes can take effect
BODY
Version
Latest version
Link to Minimal Reproduction
https://echarts.apache.org/examples/zh/editor.html?c=line-simple&version=5.4.2
Steps to Reproduce
Current Behavior
Expected Behavior
The first value of the abscissa label should be left-aligned, and the second value should be aligned by
Environment
Any additional comments?
No response
lh80um4z2#
In your case, the block size of "start" and "end" is the text itself. So no matter it's aligned to left or right, it stays at the same position. You can try to use
padding
to adjust the position.