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
如何把图表中文字大小使用rem控制 #9525
Comments
Currently |
Would be a nice feature. It's possible to use percentages. We use that for label, the disadvantage is that the font family will be reset to default one as the generated this way text styles look like this: One trick here would be add your desired font named as |
how to use this trick, could you give code example, I tried like below,but it didnt work label: {
fontSize: '150%',
fontFamily: 'px :) Simsun',
} label: {
fontSize: '150%',
fontFamily: 'px Simsun',
} |
2021年了,这个功能有支持了吗? |
@zhoufanglu Using |
4.9支持吗?我现在用的是4.9.. |
@zhoufanglu I'm afraid no. It's a new feature brought in ECharts 5. Refer to ecomfe/zrender#612 for more details. |
好的 谢谢大佬的回答 |
项目要用在4K高清大屏上展示,图表可以自适应,但是文字特小。请问,有没有什么方法能统一把单位从px改成rem ?
The text was updated successfully, but these errors were encountered: