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

2023-05-25,,

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

Echarts 设置地图上文字大小及颜色的相关教程结束。

《Echarts 设置地图上文字大小及颜色.doc》

下载本文的Word格式文档,以方便收藏与打印。