You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/08/27 07:30:15 UTC

[GitHub] XPLing opened a new issue #8954: echarts 3.6.2 label 文字颜色异常

XPLing opened a new issue #8954:  echarts 3.6.2 label 文字颜色异常
URL: https://github.com/apache/incubator-echarts/issues/8954
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### 在webpack1.0里,运行官网实例时,无法设置label的文字颜色,即使不设置,也没法跟随默认颜色显示,只是呈现黑色
   
   [官方实例](http://echarts.baidu.com/examples/editor.html?c=pie-legend)
   
   
   
   
   
   ### 版本及环境
   + ECharts version [ECharts 版本]: 3.6.2
   + Browser version [浏览器类型和版本]: 谷歌67.0.3396.62
   + OS Version [操作系统类型和版本]: win10 
   
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       title : {
           text: '南丁格尔玫瑰图',
           subtext: '纯属虚构',
           x:'center'
       },
       tooltip : {
           trigger: 'item',
           formatter: "{a} <br/>{b} : {c} ({d}%)"
       },
       legend: {
           x : 'center',
           y : 'bottom',
           data:['rose1','rose2','rose3','rose4','rose5','rose6','rose7','rose8']
       },
       toolbox: {
           show : true,
           feature : {
               mark : {show: true},
               dataView : {show: true, readOnly: false},
               magicType : {
                   show: true,
                   type: ['pie', 'funnel']
               },
               restore : {show: true},
               saveAsImage : {show: true}
           }
       },
       calculable : true,
       series : [
           {
               name:'半径模式',
               type:'pie',
               radius : [20, 110],
               center : ['25%', '50%'],
               roseType : 'radius',
               label: {
                   normal: {
                       show: false
                   },
                   emphasis: {
                       show: true
                   }
               },
               lableLine: {
                   normal: {
                       show: false
                   },
                   emphasis: {
                       show: true
                   }
               },
               data:[
                   {value:10, name:'rose1'},
                   {value:5, name:'rose2'},
                   {value:15, name:'rose3'},
                   {value:25, name:'rose4'},
                   {value:20, name:'rose5'},
                   {value:35, name:'rose6'},
                   {value:30, name:'rose7'},
                   {value:40, name:'rose8'}
               ]
           },
           {
               name:'面积模式',
               type:'pie',
               radius : [30, 110],
               center : ['75%', '50%'],
               roseType : 'area',
               data:[
                   {value:10, name:'rose1'},
                   {value:5, name:'rose2'},
                   {value:15, name:'rose3'},
                   {value:25, name:'rose4'},
                   {value:20, name:'rose5'},
                   {value:35, name:'rose6'},
                   {value:30, name:'rose7'},
                   {value:40, name:'rose8'}
               ]
           }
       ]
   };
   
   var mychartDom = document.getElementById('mychart1');
   var mychart = echarts.init(mychartDom);
   mychart.setOption(option);
   ```
   
   ### 运行结果
   ![image](https://user-images.githubusercontent.com/15956969/44646533-ec445c80-aa0d-11e8-9bf2-0ba32c25eaad.png)
   ![image](https://user-images.githubusercontent.com/15956969/44646578-1269fc80-aa0e-11e8-9404-05a9aebea366.png)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on 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: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org