Echarts 设置地图上文字大小及颜色

Echarts 设置地图上文字大小及颜色,效果如下:


上代码:关键代码用红色

 series: [
                {
                    //name: '香港18区人口密度',
                    type: 'map',
                    mapType: 'jiangsu', // 自定义扩展图表类型
                    zoom: 1.25,
                    itemStyle: {
                        normal: { label: { show: true } },
                        emphasis: { label: { show: true } }
                    }, 
            label: { normal: { textStyle: {
fontSize: 15, fontWeight: 'bold', color: 'red' } } }, data: [ { name: '徐州市', value: 20057.34, label: { normal: { show: true, formatter: function (params) { return params.name+" "+ params.value; }, }, textStyle: { fontWeight: 'normal', fontSize: 50 } },
原文地址:https://www.cnblogs.com/youmingkuang/p/8808635.html