我已检查文档,但找不到它...如何禁用鼠标悬停时 AmCharts map 上的鼠标悬停颜色?基本上禁用 map 颜色的变化(例如,美国 map 上的一个州)。我不想要任何鼠标悬停交互或颜色变化。谢谢。
var map = AmCharts.makeChart("propertiesMap", {
"type": "map",
"listeners": [{
"event": "mouseover",
"method": removeListener
}],
"dragMap": false,
"theme": "light",
"colorSteps": 5,
"mouseEnabled": false,
"selectable": false,
"zoomOnDoubleClick": false,
"dataLoader": {
"url": "https://s3-us-west-2.amazonaws.com/s.cdpn.io/t-160/22422.json",
format: "json",
"areas": [{
"mouseEnabled": false
}]
},
"areasSettings": {
"autoZoom": false,
"balloonText": "",
"outlineThickness": 1,
"selectable": false,
},
"valueLegend": {
"right": 10,
"minValue": "Cold",
"maxValue": "Hot"
},
"zoomControl": {
"zoomControlEnabled": false,
"panControlEnabled": false,
"homeButtonEnabled": false
}
});
最佳答案
要禁用所有州/地区的翻转颜色,请在 areasSettings
对象中将 rollOverColor
设置为 null
:
"areasSettings": {
// ...
"rollOverColor": null
},
关于javascript - AmCharts map 禁用鼠标悬停时的翻转颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40048786/