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

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


 

Echarts 设置地图上文字大小及颜色_第1张图片

上代码:关键代码用红色

 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+"\n"+ params.value; }, }, textStyle: { fontWeight: 'normal', fontSize: 50 } },

 

你可能感兴趣的:(Echarts 设置地图上文字大小及颜色)