apache / apache/echarts

地图名称标签位置设置无效

Open
#10,824 13 comments 0 reactions 0 assignees View on GitHub
bug topic: map waiting-for: community
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### 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?
标签位置没变化

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.