Skip to content
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

旭日图能设置文字可视最小角度吗?或如何让文字在点击到扇块时才显示? #7614

Closed
zetakv opened this issue Jan 25, 2018 · 4 comments

Comments

@zetakv
Copy link

zetakv commented Jan 25, 2018

One-line summary [问题简述]

有些饼块的角度不够,容纳不下文字,formatter中隐藏后,不知道怎么在点击下挖中重新显示,请问有没有相关的API?

Version & Environment [版本及环境]

  • ECharts version [ECharts 版本]:
  • Browser version [浏览器类型和版本]:
  • OS Version [操作系统类型和版本]:

Expected behaviour [期望结果]

ECharts option [ECharts配置项]

option = {

}

Other comments [其他信息]

@zetakv
Copy link
Author

zetakv commented Jan 25, 2018

还有一个问题,旭日图是不是还不支持tooltip?

@Ovilia
Copy link
Contributor

Ovilia commented Feb 8, 2018

tooltip 刚支持,下个版本上线。
下钻后可以给你一个回调函数,觉得 ok 不?

@Ovilia Ovilia self-assigned this Feb 8, 2018
@zetakv
Copy link
Author

zetakv commented Feb 8, 2018

@Ovilia
感谢大佬。
我现在是禁用下钻并监听click事件然后重新渲染了图形,还算是可以实现了

Ovilia added a commit that referenced this issue Feb 24, 2018
if angle is smaller than minAngle, label does not show

#7614
Ovilia added a commit to apache/echarts-doc that referenced this issue Feb 24, 2018
@Ovilia
Copy link
Contributor

Ovilia commented Feb 24, 2018

@zetakv 下个版本上线,可以通过 label.minAngle 设置,当扇形块的角度(角度制)小于该值时,对应的文字不显示。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants