-
Notifications
You must be signed in to change notification settings - Fork 19.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Legend text is not correctly aligned with icon (solution) #2983
Comments
Hi Jeffrey, can you give us the fontFamily in your case. We noticed that it has the same problem when using Microsoft Yahei. |
I'm using Open Sans through Google Fonts. Maybe the best solution here would be to add a |
It seems helpful. Considering adding it in the next release |
Vertical align has been fixed in ecomfe/zrender@65097a1. Tried Open Sans and it seems align problem not exists anymore. |
Hey! unfortunately no I am still having this issue. |
I am still having the issue. I'm using v5.4.2. |
I noticed that the text align in the legend is not correct. It happens with every symbol type. See screenshots below.
This happens both on your website (http://echarts.baidu.com/demo.html#area-stack) as well as on my website.
I've updated
line 41766
in echarts.js (3.1.6, not minimized) to:y: (itemHeight / 2) - 6
(I've added the- 6
as a correction).Now, they're perfectly aligned:
Greetings from an international user!
The text was updated successfully, but these errors were encountered: