如果禁用
series.enableMouseTracking
属性,则单击事件将不起作用。默认情况下它是启用的,所以在这种情况下我建议删除这一行。
series: [{
data: dataCountry,
joinBy: "name",
enableMouseTracking: false, // delete this line or set to true
point: {
events: {
click() {
alert('click country');
}
}
}
}]