Skip to content

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

@chengwb53

Description

@chengwb53

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?

标签位置没变化

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions