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

 

posted @ 2018-04-12 16:30  幽冥狂_七  阅读(28234)  评论(0编辑  收藏  举报