How do I make the text in echarts change with the size of the outer div?

I want the graphics generated by echarts to change with the size of div, but in practice, I find that the graphics of echarts have changed, but its text, such as coordinate font size, has not changed.

Mar.09,2021

write a tool function to dynamically return a new number proportionally according to the size of the page. When you use echarts to set various numbers, use the function to pass values into and then listen to the page resize event to redraw echarts

.
Menu