转载来源: https://blog.csdn.net/john1337/article/details/54666759
案例一:在实际应用中希望(没有数据的省会)禁止高亮颜色,解决方案:
mapChart.on("mouseover", function (params){ if(params.data.value == undefined){ mapChart.dispatchAction({ type: 'downplay' }); } });
注:mapChart会地图对象,其他action可以参考echarts官网:http://echarts.baidu.com/api.html#action.downplay