Skip to content

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

@lin-credible

Description

@lin-credible

问题简述 (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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions