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

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

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

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

muri9du opened this issue Apr 5, 2016 · 3 comments
Labels

Comments

@muri9du
Copy link

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
Copy link
Contributor

pissang commented Apr 5, 2016

设置成 center

@pissang pissang closed this as completed Apr 5, 2016
@muri9du
Copy link
Author

muri9du commented Apr 6, 2016

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

@pissang
Copy link
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 as completed in 7929239 Apr 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants