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 } },

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM