You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2019/12/11 03:55:36 UTC

[GitHub] [incubator-echarts] minimalistrojan commented on issue #11828: 饼图自定义 label 重叠问题

minimalistrojan commented on issue #11828: 饼图自定义 label 重叠问题
URL: https://github.com/apache/incubator-echarts/issues/11828#issuecomment-564368938
 
 
   > @minimalistrojan 可以提供一下你的配置项么?
   
   ```
   series: {
       name:'访问来源',
       type:'pie',
       radius: ['50%', '70%'],
       startAngle: 60,
       label: {
           formatter: ['{title|{b}}', '{value|{d}%}'].join('\n'),
           rich: {
               title: {
                   width: 142,
                   height: 35,
                   borderWidth: 1,
                   borderColor: 'blue',
                   borderRadius: 40,
                   color: 'black',
                   fontSize: 22,
                   align: 'center',
                   verticalAlign: 'center'
               },
               value: {
                   width: 142,
                   height: 50,
                   fontSize: 26,
                   align: 'center',
                   verticalAlign: 'center'
               }
           }
       },
       labelLine: { length: 20 },
       data:[
           {value:10, name:'直接访问'},
           {value:500, name:'搜索引擎'},
           {value:10, name:'联盟广告'},
           {value:10, name:'邮件营销'},
       ]
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org