Echarts自定義地圖--自定義區域背景圖顏色

效果圖javascript

series: [{
                    name: 'mapSer',
                    type: 'map',
                    roam: true,
                    mapType: 'map', // 自定義擴展圖表類型
                    coordinateSystem: 'geo',
                    layoutSize: 50,
                    aspectScale: 1,
                    top: 70,
                    bottom: 30,
                    itemStyle: {
                        normal: {
                            label: {
                                show: !0
                            },
                            formatter: function formatter(a) {
                                return a.value;
                            },
                            borderColor: "#389BB7",//每一個區域的邊框色
                            areaColor:'#0FB8F0'//區域背景色
                        },
                    },
                    label: {
                        normal: {
                            show: true,
                            color: '#666',//每一個區域文字顏色
                            fontSize:'14px',
                        },

                    },
                    data: serData
                    // data: []
                }]