kharry126 opened a new issue #8406: 中国的geo地图label不生效,不能显示自定义label URL: https://github.com/apache/incubator-echarts/issues/8406 One-line summary [问题简述] 在载geo地图,如果定义geo组件,且系列中通过geoIndex指定这个geo组件,系列中label不生效, 如果在geo组件中添加label的时候,能控制label显示以及修改字体样式等,当时formatter不生效,不能自定义label Version & Environment [版本及环境] ECharts version :"echarts": "^4.0.4", Browser version: chrome 66.0.3359.139 OS Version [操作系统类型和版本]: win10 64位 Expected behaviour [期望结果] 支持自定义label,地图显示文本 ### ECharts option [ECharts配置项] option ={ "visualMap": { "min": 0, "max": 520, "text": [ "高", "低" ], "left": 4, "bottom": 4 }, "series": [ { "name": "ShipAddress", "groupName": "GLOBAL_MARK", "data": [ { "value": 133, "displayValue": [ "北京市", "133" ], "rawName": "北京市", "rowIndex": [ 0, 0 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "133" } }, "name": "北京" }, { "value": 68, "displayValue": [ "福建省", "68" ], "rawName": "福建省", "rowIndex": [ 1, 1 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "68" } }, "name": "福建" }, { "value": 118, "displayValue": [ "广东省", "118" ], "rawName": "广东省", "rowIndex": [ 2, 2 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "118" } }, "name": "广东" }, { "value": 43, "displayValue": [ "海南省", "43" ], "rawName": "海南省", "rowIndex": [ 3, 3 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "43" } }, "name": "海南" }, { "value": 249, "displayValue": [ "河北省", "249" ], "rawName": "河北省", "rowIndex": [ 4, 4 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "249" } }, "name": "河北" }, { "value": 5, "displayValue": [ "湖北省", "5" ], "rawName": "湖北省", "rowIndex": [ 5, 5 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "5" } }, "name": "湖北" }, { "value": 75, "displayValue": [ "吉林省", "75" ], "rawName": "吉林省", "rowIndex": [ 6, 6 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "75" } }, "name": "吉林" }, { "value": 293, "displayValue": [ "江苏省", "293" ], "rawName": "江苏省", "rowIndex": [ 7, 7 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "293" } }, "name": "江苏" }, { "value": 50, "displayValue": [ "江西省", "50" ], "rawName": "江西省", "rowIndex": [ 8, 8 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "50" } }, "name": "江西" }, { "value": 103, "displayValue": [ "辽宁省", "103" ], "rawName": "辽宁省", "rowIndex": [ 9, 9 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "103" } }, "name": "辽宁" }, { "value": 130, "displayValue": [ "山东省", "130" ], "rawName": "山东省", "rowIndex": [ 10, 10 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "130" } }, "name": "山东" }, { "value": 3, "displayValue": [ "山西省", "3" ], "rawName": "山西省", "rowIndex": [ 11, 11 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "3" } }, "name": "山西" }, { "value": 18, "displayValue": [ "陕西省", "18" ], "rawName": "陕西省", "rowIndex": [ 12, 12 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "18" } }, "name": "陕西" }, { "value": 68, "displayValue": [ "上海市", "68" ], "rawName": "上海市", "rowIndex": [ 13, 13 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "68" } }, "name": "上海" }, { "value": 48, "displayValue": [ "四川省", "48" ], "rawName": "四川省", "rowIndex": [ 14, 14 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "48" } }, "name": "四川" }, { "value": 520, "displayValue": [ "天津市", "520" ], "rawName": "天津市", "rowIndex": [ 15, 15 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "520" } }, "name": "天津" }, { "value": 47, "displayValue": [ "云南省", "47" ], "rawName": "云南省", "rowIndex": [ 16, 16 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "47" } }, "name": "云南" }, { "value": 61, "displayValue": [ "浙江省", "61" ], "rawName": "浙江省", "rowIndex": [ 17, 17 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "61" } }, "name": "浙江" }, { "value": 122, "displayValue": [ "重庆市", "122" ], "rawName": "重庆市", "rowIndex": [ 18, 18 ], "colIndex": 1, "label": { "normal": { "show": true, "formatter": "122" } }, "name": "重庆" } ], "type": "map", "stack": "default", "label": { "position": "inside" }, "geoIndex": 0 } ], "tooltip": {}, "grid": { "left": 10, "right": 10, "top": 10, "bottom": 10 }, "geo": { "map": "china" } } ### Other comments [其他信息] 
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
