// 为echarts对象加载数据
myChart.setOption(option);
myChart.on(ecConfig.EVENT.CLICK, eConsole);
/*
myChart.on(ecConfig.EVENT.MAP_SELECTED, function (param){
var selected = param.selected;
for (var p in selected) {
if (selected[p]) {
//只查询一个省
selectProvince = p;
// getDataList();
location.href = "shenzhenpinghu.html";
//alert(p);
}
}
}) */
function eConsole(param){
if(param.seriesName == ""){ //点击的区,或者市县
alert(param.name);
//alert(param.seriesName);
//alert(param.name);
//return;
//location.href = "shenzhenpinghu.html";
}else{
var isStation = false;
var stationId = param.value.split("-")[1];
var type = param.value.split("-")[0];
var inNet = param.value.split("-")[2];
if(type == 0){
isStation = true;
}
if(isStation && inNet == 1){
location.href = "shenzhenpinghu.html";
}
}
}