基于echarts生成的东莞区域图表及广东图表
myChart.setOption(option = {
visualMap: {
left: 'right',
min: 0,
max: 10000,
inRange: {
color: ['#313695', '#4575b4', '#74add1', '#abd9e9', '#e0f3f8', '#ffffbf', '#fee090', '#fdae61', '#f46d43', '#d73027', '#a50026']
},
text:['High','Low'], // 文本,默认为数值文本
calculable: true
},
series: [
{
type: 'map',
roam: true,
map: 'DG',
itemStyle:{
normal:{label:{show:true}},
emphasis:{label:{show:true}}
},
data:newData
}
]
});
地图坐标数据包在文件里。