-
Notifications
You must be signed in to change notification settings - Fork 19.8k
Open
Milestone
Description
Version
3.4.0
Reproduction link
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?
标签位置没变化