echarts [Bug] 在rich字段里设置align不生效,其他属性能生效

kfgdxczn  于 5个月前  发布在  Echarts
关注(0)|答案(2)|浏览(117)

Version

最新版

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

6rvt4ljy

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

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

- OS:
- Browser:
- Framework:

Any additional comments?

No response

lh80um4z

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.

相关问题