apache / echarts

Apache ECharts is a powerful, interactive charting and data visualization library for browser
https://echarts.apache.org
Apache License 2.0
60.57k stars 19.61k forks source link

[Bug] Is there any way to reduce font size with responsive for speedometer gauge value. #17704

Closed sanketinx closed 1 week ago

sanketinx commented 2 years ago

Version

5.4

Link to Minimal Reproduction

No response

Steps to Reproduce

https://echarts.apache.org/examples/en/editor.html?c=gauge

Current Behavior

Value 9.8 overlapping on the gauge value.

https://ibb.co/R0q0mNW

Expected Behavior

Need to reduce font size according to the screen responsive width.

Environment

- OS: linux 
- Browser: All 
- Framework: Codeigniter 3.1.1

Any additional comments?

No response

Ovilia commented 2 years ago

This cannot be responsive by itself but you can check (like whether n.toString().length > 2) before setOption and change the font size in the option.

sanketinx commented 2 years ago

Thanks for the reply but it is not working for the 2-digit floating values. Is there any editor example that can be helpful? Thanks again. Waiting for reply.

sanketinx commented 2 years ago

Hello, there is there any update?

github-actions[bot] commented 2 weeks ago

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] commented 1 week ago

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!