fengnian7 opened a new issue #16282:
URL: https://github.com/apache/echarts/issues/16282


   ### Version
   
   5.2.1
   
   ### Link to Minimal Reproduction
   
   _No response_
   
   ### Steps to Reproduce
   
   你好我们的使用场景是:
   
环形图的最外层的label,以及emphasis我设置为false,因为我们的使用场景不想要他展示,就是想实现环形图中心定制文字的场景。不需要展示label,所以我们的代码如下,举个例子:
   在5.0.2版本,我这样设置环形图中心的label
   option = {
       tooltip: {
           trigger: 'item',
           formatter: '{a} <br/>{b}: {c} ({d}%)'
       },
       legend: {
           orient: 'vertical',
           left: 10,
           data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
       },
       series: [
           {
              name: '访问来源',
               type: 'pie',
               radius: ['50%', '70%'],
               avoidLabelOverlap: false,
               label: {
                   show: false,
                   position: 'center'
               },
               emphasis: {
                   label: {
                       show: false,
                       fontSize: '30',
                       fontWeight: 'bold'
                   }
               },
               labelLine: {
                   show: false
               },
               data: [
                   {value: 335, name: '直接访问'},
                   {value: 310, name: '邮件营销'},
                   {value: 234, name: '联盟广告'},
                   {value: 135, name: '视频广告'},
                   {value: 1548, name: '搜索引擎'},
                   {label: {
                            normal : {
                 position: 'center',
                 formatter: ['{c| }', '{b| 中心标签}', ].join('\n'),            
                 show: true,
                 rich: {
                   b : {
                     color: '#333'
                   }
                 }
               }
                   }}
               ]
           }
       ]
   };
   给中心直接label写死为“中心标签”,5.0.2版本可以生效,环形图中间的四个字正常显示
   但是同样的代码,在5.2.1版本下,这个series.date.label不生效了,这四个文字无法显示了
   
   ### Current Behavior
   
   从5.0.2版本升级到5.2.1版本之后,环形图中间的文字展示不出来了
   
   ### Expected Behavior
   
   期望5.2.1版本,环形图中心的文字能够展示
   
   ### Environment
   
   ```markdown
   - OS:
   - Browser:
   - Framework:
   ```
   
   
   ### Any additional comments?
   
   _No response_


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to