Municipal data did not show the corresponding color, solving
Title: {
Text: 'in Shanxi Province to visit situation map,
//subtext: 'fabrication',
X: 'center'
},
Tooltip: {
Show: true,
The trigger: 'item',
TriggerOn: 'click',
Enterable: true,
The formatter: (othercity)=& gt; {
Let dataCon=othercity;
Let the url=window. The location. Href;
Let gourl=url + 'Child? Dm='+ getxzqh (dataCon. Name);
Let txtCon=dataCon. Name + ': & lt; br> The cumulative: '+ getVal (dataCon. Name);
Return txtCon + ` & amp; nbsp; & nbsp; & nbsp; `;
},
},
//legend: {
//received: 'vertical',
//x: 'left',
//data: [' XinFangJian]
//},
VisualMap: {
Show: true,
Type: 'piecewise,
SplitNumber: 6,
Min: 0,
Max: 2000,
Align: 'right',
//top: '2%',
Bottom: '0',
Right: 0,
Left: 'center',
InRange: {
Color: [' # ff8c71 ', '# EFC12A', '# ef1717', '# 9 c0505]
},
Pieces: [
{value: 1000, label: 'more than 1000},
{min: 500, Max: 999},
{min: 100, Max: 499},
{min: 10, Max: 99},
{min: 1, the Max: 9},
{value: 0, label: '0'},
],
Received: 'horizontal',
ShowLabel: true,
Padding: 5,
//text: [' high ', 'low'],
ItemWidth: 10,
10, itemHeight:
ItemSymbol: "circle",
TextStyle: {
FontSize: 10
}
},
The toolbox: {
Show: true,
Received: 'vertical',
X: 'right',
Y: 'center',
Feature: {
Mark: {show: true},
DataView: {show: false, readOnly: false},
Restore: {show: false},
SaveAsImage: {show: false}
}
},
RoamController: {
Show: true,
X: 'right',
MapTypeControl: {
'China' : true
}
},
Series: [
{
Name: 'XinFangJian'
Type: 'map',
MapType: shanxi,
Levenshtein distance: false,
Zoom: 1.1,
ItemStyle: {
Normal: {label: {show: true}},
Emphasis: {label: {show: true}}
},
MarkPoint: {
Symbol: 'image://data: image/PNG; base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAMAAAAp4XiDAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAWVQTFRFAAAA/wAA/wAA/wAA/wAA/wA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ChO0ayGYikE6png1r3D/D+zY9sZU8QIT0jPow8O+XEC0Ze34LvyA/DEmIpUPyRPgC0emeVtqcFRQAAAABJRU5ErkJggg==',
//symbol: 'pin',
SymbolSize: 0,
SymbolOffset: [0, 0],
ItemStyle: {
Normal: {
Color: # '08 e2fa',
Label: {
Show: true,
TextStyle: {
Color: '# FFF'
}
}
},
Emphasis: {
Color: # ea9c54,
}
},
Label: {
Normal: {
The formatter: function (param) {
Return param!=null ? Math. Round (param. Value) : "';
}
}
},
Data: convertData (othercity)
}
}
]