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/09/23 11:30:39 UTC

[GitHub] ohohyea opened a new issue #9120: 地图的数据项标签的显示和legend属性有关系,这个应该是个bug吧?

ohohyea opened a new issue #9120: 地图的数据项标签的显示和legend属性有关系,这个应该是个bug吧?
URL: https://github.com/apache/incubator-echarts/issues/9120
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   在地图系列中,当option中存在legend属性后(legend的show设置false 也一样),尽管在系列的data中某数据项的label属性的show设置为true,此标签也不显示在地图上。删除legend属性后,即可显示此数据。
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:ECharts 4.10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   var option ={
     tooltip: {},
     legend1: {data: ["测试"],show:false}, //删除此属性后,即正确显示数据项的标签
     series: [{
       name: "测试",
       data: [
         {
           name: "重庆",
           value: "177",
           label: {show: true,color: "black" }
         },
         {
           name: "广东",
           value: "42",
           label: {show: true,color:'black'}
         }
       ],
       map: "china",
       type: "map"
     }]
   };
   
   ```
   
   
   
   
   ### 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:
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