echarts [Bug] I set the text to be vertically centered, but the effect is not significant [graph,edgeLabel,verticalAlign: 'middle']

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

Version

5.2.2

https://echarts.apache.org/examples/zh/editor.html?c=graph-simple

Steps to Reproduce

I set the text to be vertically centered, but the effect is not significant

Current Behavior

I set the text to be vertically centered, but the effect is not significant

Expected Behavior

Whether zoomed in or out, text is vertically centered

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

uwopmtnx

uwopmtnx1#

I set the text to be vertically centered, but the effect is not significant

verticalAlign:'middle' will stay close to the edge line by default. Try larger lineHeight with verticalAlign:'bottom' or 'top'.

gmxoilav

gmxoilav2#

If you shrink the chart, it will become invalid

相关问题