Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想动态地从地图(amCharts v4 地图)中排除国家。但是当我将值推入多边形系列时,没有任何变化。polygonSeries.exclude.push('RU');. 我必须重新绘制地图才能看到新的排除国家。如何在不重新加载地图的情况下排除国家?请参阅此codepen中的示例。谢谢。
polygonSeries.exclude.push('RU');
解决方案是使用“隐藏”功能,而不是排除polygonSeries.getPolygonById("RU").hide();。
polygonSeries.getPolygonById("RU").hide();