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/11/03 11:44:02 UTC

[GitHub] [incubator-echarts] Baddyo opened a new issue #11551: 3D 地图的 Label.rich 不生效

Baddyo opened a new issue #11551: 3D 地图的 Label.rich 不生效
URL: https://github.com/apache/incubator-echarts/issues/11551
 
 
   ### Version
   4.4.0
   
   ### Steps to reproduce
   ```js
   series: [
               {
                 type: 'map3D',
                 id: 1,
                 name: 'map 01',
                 map: 'china',
                 roam: true,
                 itemStyle: {
                   borderColor: 'blue',
                   borderWidth: 1
                 },label:{
                       normal:{
                         show:true,
                         formatter:function(p){
                           const data=p.data;
                           return '{a|'+data.name+'}\n'+data.value;
                         },
                         rich:{
                           a:{
                             color:'red'
                           }
                         },
                         textStyle:{
                           color:'#fff',
                           backgroundColor:'rgba(0,0,0,0.6)',
                           padding:6,
                           fontSize:32,
                         },
                       },
                       
                     },
                 data: [
                   {
                     name: '内蒙古',
                     value: '1000',
                     itemStyle:{
                       color:'red',
                     },
                   }
                 ],
               },
             ]
   ```
   
   ### What is expected?
   3D 地图中内蒙古区域的 label 上,“内蒙古”三个字为红色
   
   ### What is actually happening?
   富文本无效
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   

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