![](/img/trans.png)
[英]AMCharts Maps v4 - Is there a way to have more than two colors in a heatLegend?
[英]AMCharts Maps v4 - colors in a heatLegend on resize?
對於遇到這個問題的任何人,這里有一個更新的筆可以做到這一點。 它本質上涉及監聽 heatLegend 本身的sizechanged
事件:
heatLegend.markers.template.events.on("sizechanged", function(event) {
event.target.fill = event.target.fill;
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.