在您的 JSFiddle 中,尝试更改:
dataProvider.images.push({
type: "circle",
width: size,
height: size,
// color: dataItem.color,
longitude: heatmapData[i].lon,
latitude: heatmapData[i].lat,
title: heatmapData[i].country,
value: heatmapData[i].count
});
至:
dataProvider.images.push({
type: "circle",
width: size,
height: size,
// color: dataItem.color,
longitude: heatmapData[i].lon,
latitude: heatmapData[i].lat,
title: heatmapData[i].country,
value: heatmapData[i].count,
selectable: true
});
(见,最后一行,添加可选)。
这似乎是一个未记录的要求。它由此处的 amcharts 演示提供:http: //jsfiddle.net/amcharts/6WVvS/链接到/“记录在”:http ://www.amcharts.com/tutorials/interacting-between-javascript-charts-and -javascript地图/