echarts legend 的 色块和文字无法上下居中对齐

yyyllmsg  于 2022-11-02  发布在  Echarts
关注(0)|答案(3)|浏览(1421)

Version

5.2.2

https://echarts.apache.org/examples/zh/editor.html?c=bar-label-rotation

Steps to reproduce

请看官网示例, https://echarts.apache.org/examples/zh/editor.html?c=bar-label-rotation

What is expected?

可以提供属性支持设置字体和图例的对齐属性,看了之前很多相关的issue,没有一个给出了解决方案和具体回复的

What is actually happening?

无法 居中对齐

tmb3ates

tmb3ates1#

Hi! We've received your issue and please be patient to get responded. 🎉
The average response time is expected to be within one day for weekdays.

In the meanwhile, please make sure that it containsa minimum reproducible demoand necessaryimagesto illustrate. Otherwise, our committers will ask you to do so.

  • A minimum reproducible demo* should contain as little data and components as possible but can still illustrate your problem. This is the best way for us to reproduce it and solve the problem faster.

You may also check out the API and chart option to get the answer.

If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org . Please attach the issue link if it's a technical question.

If you are interested in the project, you may also subscribe to our mailing list .

Have a nice day! 🍵

sqxo8psd

sqxo8psd2#

@donotloveshampo It seems you are not using English, I've helped translate the content automatically. To make your issue understood by more people, we'd like to suggest using English next time. 🤗

TRANSLATED

TITLE

The color blocks and text of legend cannot be centered up and down

BODY

Version

5.2.2

https://echarts.apache.org/examples/zh/editor.html?c=bar-label-rotation

Steps to reproduce

Look at the official website example, https://echarts.apache.org/examples/zh/editor.html?c=bar-label-rotation

What is expected?

You can provide properties that support setting the alignment properties of fonts and legends, and look at many of the previous related issue, none of which give a solution and specific responses

What is actually happening?

Cannot center align

mbskvtky

mbskvtky3#

参见 #14121 。主要跟字体有关,Windows 下的默认字体微软雅黑会存在垂直”不居中“的情况,可以尝试其他字体,例如黑体。

相关问题