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