echarts icon indicating copy to clipboard operation
echarts copied to clipboard

Scale fontSize of the whole chart

Open Paul-Kijtapart opened this issue 8 years ago • 4 comments

One-line summary [问题简述]

is there a suggested way to scale up/down the font size of a chart? Or change the default fontSize used in various textStyle (i.e. update the minimum font size)?

Expected behaviour [期望结果]

I am hoping to set font size for a chart with children having responsive font size.

This is similar to how I can work with CSS: https://jsfiddle.net/coolbean/yu5cej3n/3/

From the above link, fontsize 'em' is employed to enable responsive font size of each child. (i.e. for instance, if the font-size of the document is 12pt, 1em is equal to 12pt. )

You can change the font size used for class parent and see that each child responds accordingly.

Question

I am wondering if Echart has some options to scale up the size of all font.

Paul-Kijtapart avatar Jun 15 '18 00:06 Paul-Kijtapart

I too would love this functionality.

3h50 avatar Nov 13 '18 15:11 3h50

Please find it here and see if it's helpful. https://stackoverflow.com/questions/59559511/how-to-auto-scale-font-size-in-echarts/

raaaaay-c avatar Jan 03 '20 03:01 raaaaay-c

This issue has been automatically marked as stale because it did not have recent activity. It will be closed in 7 days if no further activity occurs. If you wish not to mark it as stale, please leave a comment in this issue.

github-actions[bot] avatar Jan 02 '22 21:01 github-actions[bot]

This issue has been automatically closed because it did not have recent activity. If this remains to be a problem with the latest version of Apache ECharts, please open a new issue and link this to it. Thanks!

github-actions[bot] avatar Jan 09 '22 21:01 github-actions[bot]