echarts icon indicating copy to clipboard operation
echarts copied to clipboard

饼状图在移动端的使用问题

Open Elvira-Ho opened this issue 9 years ago • 9 comments

在移动端使用时,当文字超出屏幕会直接截断,可否有让文字换行的参数 写了个例子如下 demo

Elvira-Ho avatar Sep 19 '17 08:09 Elvira-Ho

'\n' 换行

Ovilia avatar Sep 20 '17 02:09 Ovilia

怎么使用?

Elvira-Ho avatar Sep 20 '17 08:09 Elvira-Ho

你可以监听屏幕大小的改变吗?大小改变的时候刷新一次

DukeGJ avatar Sep 20 '17 09:09 DukeGJ

series 和 legend 中的 '直接访问' 改为 '直接\n访问'

Ovilia avatar Sep 20 '17 09:09 Ovilia

@DukeGJ 怎么监听

Elvira-Ho avatar Sep 21 '17 01:09 Elvira-Ho

移动端应该提供了窗体大小改变的事件监听,你只要在窗体大小改变之后刷新页面就好了,具体你可你查查API

DukeGJ avatar Sep 21 '17 03:09 DukeGJ

@Summer-Shirley 兄弟这个问题弄好了么

zhupengxiang avatar Jan 22 '19 06:01 zhupengxiang

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 Sep 03 '21 21:09 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 Sep 10 '21 21:09 github-actions[bot]