环形图series[i]-pie.label.normal.position 的inside属性无效 #2949

Closed
muri9du opened this Issue Apr 5, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@muri9du

muri9du commented Apr 5, 2016

问题简述 (One-line summary)

环形图series[i]-pie.label.normal.position 的inside属性无效

版本及环境 (Version & Environment)

  • ECharts 版本 (ECharts version):最新版
  • 浏览器类型和版本 (Browser version):Chrome 49.0
  • 操作系统类型和版本 (OS Version):win7 64位旗舰版

重现步骤 (Steps to reproduce)

1.官方示例:http://echarts.baidu.com/demo.html#pie-doughnut
把20行position属性改为 'inside'
label显示在了环形内侧

期望结果 (Expected behaviour)

label在环形区域内显示

可能哪里有问题 (What went wrong)

不知道

ECharts配置项 (ECharts option)

option = {
tooltip: {
        trigger: 'item',
        formatter: "{a} <br/>{b}: {c} ({d}%)"
    },
    legend: {
        orient: 'vertical',
        x: 'left',
        data:['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
    },
    series: [
        {
            name:'访问来源',
            type:'pie',
            radius: ['50%', '70%'],
            avoidLabelOverlap: false,
            label: {
                normal: {
                    show: true ,
                    position: 'inside',
                    textStyle: {
                        fontSize: '30',
                        fontWeight: 'bold'
                    }
                },
                emphasis: {
                    show: true,
                    textStyle: {
                        fontSize: '30',
                        fontWeight: 'bold'
                    }
                }
            },
            labelLine: {
                normal: {
                    show: false
                }
            },
            data:[
                {value:335, name:'直接访问'},
                {value:310, name:'邮件营销'},
                {value:234, name:'联盟广告'},
                {value:135, name:'视频广告'},
                {value:1548, name:'搜索引擎'}
            ]
        }
    ]
}

其他信息 (Other comments)

@pissang

This comment has been minimized.

Show comment
Hide comment
@pissang

pissang Apr 5, 2016

Contributor

设置成 center

Contributor

pissang commented Apr 5, 2016

设置成 center

@pissang pissang closed this Apr 5, 2016

@muri9du

This comment has been minimized.

Show comment
Hide comment
@muri9du

muri9du Apr 6, 2016

@pissang center是显示在圆的中心,我是要显示在环内,2.0版本还是可以的,3.0就不行了,具体效果请移步:
http://www.oschina.net/question/2379500_2150681?fromerr=BZGForgT

muri9du commented Apr 6, 2016

@pissang center是显示在圆的中心,我是要显示在环内,2.0版本还是可以的,3.0就不行了,具体效果请移步:
http://www.oschina.net/question/2379500_2150681?fromerr=BZGForgT

@pissang

This comment has been minimized.

Show comment
Hide comment
@pissang

pissang Apr 6, 2016

Contributor

@muri9du 了解了,是有点问题,下个版本修复,谢谢反馈

Contributor

pissang commented Apr 6, 2016

@muri9du 了解了,是有点问题,下个版本修复,谢谢反馈

@pissang pissang reopened this Apr 6, 2016

@pissang pissang added the bug label Apr 6, 2016

@pissang pissang closed this in 7929239 Apr 6, 2016

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