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

需求&求助:饼图 hover 在扇区上的放大动画效果能否支持调整 #3857

Closed
lin-credible opened this issue Aug 17, 2016 · 6 comments
Milestone

Comments

@lin-credible
Copy link

lin-credible commented Aug 17, 2016

问题简述 (One-line summary)

希望能调整饼图 hover 在扇区上的放大动画效果,比如动画效果变弱,比如扇区大小变化没那么快,以及扇区扩大倍数调小等等

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version): 3.0
  • 浏览器类型和版本 (Browser version): Chrome Latest Version
  • 操作系统类型和版本 (OS Version): Mac, Windows

重现步骤 (Steps to reproduce)

不是bug, 新需求,极大可能性是我不会用 😂

期望结果 (Expected behaviour)

能支持 hover 在扇区的动画效果变弱

ECharts配置项 (ECharts option)

option = {
                tooltip: {
                    show: false,
                    trigger: 'item',
                    formatter: "{a} <br/>{b}: {c} ({d}%)"
                },
                legend: {
                    show: false
                },
                color:['#4a90e2', '#fda737'],
                series: [
                    {
                        type: 'pie',
                        radius: ['60%', '80%'],
                        avoidLabelOverlap: false,
                        label: {
                            normal: {
                                show: false,
                                position: 'center'
                            },
                            emphasis: {
                                show: true,
                                textStyle: {
                                    fontSize: '13',
                                    fontWeight: 'normal'
                                },
                                formatter : function (params) {                         
                                    return params.name + ' (' + params.percent + '%)';
                                }
                            }
                        },
                        labelLine: {
                            normal: {
                                show: false
                            }
                        },
                        data:[
                            {value: 30, name: '完成率'},
                            {value: 70, name: '未完成'}
                        ]
                    }
                ]
            };

其他信息 (Other comments)

image

@lin-credible lin-credible changed the title 饼图 hover 在扇区上的放大动画效果能否支持调整 需求&求助:饼图 hover 在扇区上的放大动画效果能否支持调整 Aug 17, 2016
@newUser12138
Copy link

newUser12138 commented Aug 18, 2016

顶,同求,我看了下配置项,里面只找到选中扇区selected时的偏移量设置,没找到鼠标移入扇区hover时的偏移量设置。顺便附一句,扇形放大后有时会把边上的文字遮挡掉,这个有办法解决吗?

@liekkas
Copy link

liekkas commented Nov 3, 2016

+1

@WPBLRUN
Copy link

WPBLRUN commented Dec 26, 2016

顶,希望能设置调整。谢了!

@mixj93
Copy link

mixj93 commented Jun 1, 2017

+1

@Ovilia
Copy link
Contributor

Ovilia commented Sep 22, 2017

从下个版本起,可以通过 series.hoverOffset 配置高亮状态下的偏移量,默认值是 10。

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

8 participants