zpfrancis opened a new issue #8124: 旭日图的downplay与highlight中label无效果
URL: https://github.com/apache/incubator-echarts/issues/8124
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   分别在data level 和donwplay\highlight中设置label的相关属性,无效果。
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:
   + Browser version [浏览器类型和版本]:
   + OS Version [操作系统类型和版本]:
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 
option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
       title: {
           text: '节目',
           left: 'center',
           textStyle: {
               color: 'rgb(51, 122, 183)',
               fontFamily: 'Microsoft YaHei',
               fontSize: 18
           }
       },
       series: [{
           type: 'sunburst',
           center: ['50%', '50%'],
           radius: [0, '85%'],
           sort: null,
           data: [
               {
                   name: '白天',
                   children: [
                       {
                           name: '6am至12am',
                           children: [
                               {
                                   name: '电影1',
                                   value: 20
                               }
                           ]
                       },
                       {
                           name: '1pm至6pm',
                           children: [
                               {
                                   name: '电影2',
                                   value: 10
                               },
                               {
                                   name: '电影3',
                                   value: 10
                               }
                           ]
                       }
                   ]
               },
               {
                   name: '晚上',
                   children: [
                       {
                           name: '7pm至12pm',
                           children: [
                               {
                                   name: '电影4',
                                   value: 10
                               },
                               {
                                   name: '电影5',
                                   value: 10
                               },
                               {
                                   name: '电影6',
                                   value: 10
                               }
                           ]
                       },
                       {
                           name: '1am至6am',
                           children: [
                               {
                                   name: '电影7',
                                   value: 10
                               },
                               {
                                   name: '电影8',
                                   value: 10
                               },{
                                   name: '电影9',
                                   value: 10
                               }
                           ]
                       }
                   ]
   
               }
   
           ],
           itemStyle: {
               borderColor: '#333333',
               borderWidth: 3
           },
           highlight: {
               itemStyle: {
                   color: 'orange'
               }
           },
           downplay: {
               label: {
                   color: 'red'
               },
               itemStyle: {
                   color: '#666666'
               }
           },
           levels: [
               {},
               {
                   r0: 0,
                   r: 80,
                   label: {
                       rotate: 0,
                       textBorderColor: 'transparent'
                   }
               },
               {
                   r0: 80,
                   r: 110,
                   label:{
                       rotate: 'tangential',
                       textBorderColor: 'transparent'
                   }
               },
               {
                   r0: 110,
                   r: 140,
                   label: {
                       position: 'outside',
                       textBorderColor: 'transparent'
                   }
               }
           ]
       }]
   }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@echarts.apache.org
For additional commands, e-mail: dev-h...@echarts.apache.org

Reply via email to