chengwubin opened a new issue #10824: 地图名称标签位置设置无效
URL: https://github.com/apache/incubator-echarts/issues/10824
 
 
   ### Version
   3.4.0
   
   ### Reproduction link
   
[https://echarts.baidu.com/examples/editor.html?c=map-HK](https://echarts.baidu.com/examples/editor.html?c=map-HK)
   
   ### Steps to reproduce
   // 复制下列代码替换https://echarts.baidu.com/examples/editor.html?c=map-HK 
中编辑区域原来的代码,添加了label的position为left
   
   myChart.showLoading();
   
   $.get('data/asset/geo/HK.json', function (geoJson) {
   
       myChart.hideLoading();
   
       echarts.registerMap('HK', geoJson);
   
       myChart.setOption(option = {
           title: {
               text: '香港18区人口密度 (2011)',
               subtext: '人口密度数据来自Wikipedia',
               sublink: 
'http://zh.wikipedia.org/wiki/%E9%A6%99%E6%B8%AF%E8%A1%8C%E6%94%BF%E5%8D%80%E5%8A%83#cite_note-12'
           },
           series: [
               {
                   name: '香港18区人口密度',
                   type: 'map',
                   mapType: 'HK', // 自定义扩展图表类型
                   itemStyle:{
                       normal:{
                           label:{
                               show:true,
                               position: 'left' // 指定标签显示位置
                           }
                       },
                       emphasis:{label:{show:true}}
                   }
               }
           ]
       });
   });
   
   ### What is expected?
   地区标签能显示在指定的位置
   
   ### 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:
[email protected]


With regards,
Apache Git Services

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

Reply via email to