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 2020/02/14 13:39:27 UTC

[GitHub] [incubator-echarts] kakadfsq opened a new issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题

kakadfsq opened a new issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题
URL: https://github.com/apache/incubator-echarts/issues/12148
 
 
   饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题,显示如下图
   ![image](https://user-images.githubusercontent.com/17897409/74535986-12e3b380-4f72-11ea-84c5-58f721d6bed6.png)
   在formatter中没有使用rich的时候,显示如下图
   ![image](https://user-images.githubusercontent.com/17897409/74536064-432b5200-4f72-11ea-8be1-3f5df48deab3.png)
   
   显示有问题的配置如下
   ```
   var data = [{
       name: 'Apples',
       value: 70
   }, {
       name: 'Strawberries',
       value: 68
   }, {
       name: 'Bananas',
       value: 48
   }, {
       name: 'Oranges',
       value: 40
   }, {
       name: 'Pears',
       value: 32
   }, {
       name: 'Pineapples',
       value: 27
   }, {
       name: 'Grapes',
       value: 18
   }];
   
   option = {
       title: [{
           text: 'Pie label alignTo'
       },{
           subtext: 'alignTo: "edge"',
           top: '75%',
           textAlign: 'center'
       }],
       series: [{
           type: 'pie',
           radius: '25%',
           center: ['50%', '50%'],
           data: data,
           animation: false,
           label: {
               position: 'outer',
               alignTo: 'edge',
               margin: 20,
               distanceToLabelLine: 0,
               formatter: function(a){
                   return '{a|' + a.value + '}\n{b|' + a.name + '}';
               },
               rich: {
                   a: {
                       fontSize: 10,
                   },
                   b: {
                       fontSize: 10,
                       color: '#49607D',
                   }
               }
           },
           right: 0,
           top: 0,
           bottom: 0
       }]
   };
   ```

----------------------------------------------------------------
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


[GitHub] [incubator-echarts] echarts-bot[bot] closed issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] closed issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题
URL: https://github.com/apache/incubator-echarts/issues/12148
 
 
   

----------------------------------------------------------------
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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #12148: 饼图,label的alignTo选择 edge 后,在formatter中使用了rich,labelLine显示有问题
URL: https://github.com/apache/incubator-echarts/issues/12148#issuecomment-586291407
 
 
   This issue is not created using [issue template](https://ecomfe.github.io/echarts-issue-helper/) so I'm going to close it. 🙊
   Sorry for this, but it helps save our maintainers' time so that more developers get helped.
   Feel free to create another issue using the issue template.
   
   If you think you have already made your point clear without the template, or your problem cannot be covered by it, you may re-open this issue again.
   
   这个 issue 未使用 [issue 模板](https://ecomfe.github.io/echarts-issue-helper/?lang=zh-cn) 创建,所以我将关闭此 issue。
   为此带来的麻烦我深表歉意,但是请理解这是为了节约社区维护者的时间,以更高效地服务社区的开发者群体。
   如果您愿意,可以请使用 issue 模板重新创建 issue。
   
   如果你认为虽然没有使用模板,但你已经提供了复现问题的充分描述,或者你的问题无法使用模板表达,也可以重新 open 这个 issue。

----------------------------------------------------------------
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