微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

如何使用amcharts制作具有多个“自定义”系列的美国地图?

如何解决如何使用amcharts制作具有多个“自定义”系列的美国地图?

我想拥有一张美国地图,以某种颜色显示某些州,而另一种颜色显示某些州。我相信这些都应该是单独的系列,但是我对如何制作两个系列并展示它们有些迷惑。我还希望图例显示颜色和系列。

我从本教程开始:https://www.amcharts.com/demos/selecting-multiple-areas-map/

我正在使用一个JSON文件作为我的polygonSeries.data,如下所示:

[
{"Code":"AL","id":"US-AL","State":"Alabama","state":"Alabama","category":"Economic Nexus","item":"State-Specific Economic","decision":"Yes","explanation":"Alabama has economic Nexus rules. Sellers have nexus in Alabama when they meet both of the following: (1) the seller sold more than $250,000 of tangible personal property delivered to Alabama over the prevIoUs calendar year,and (2) the seller satisfies one of the state's general nexus conditions.","nexus_dollars":"250000","nexus_sales":"","and_or":""},{"Code":"AK","id":"US-AK","State":"Alaska","state":"Alaska","decision":"N/A","explanation":"Alaska does not have a state sales tax; therefore,nexus conditions are not stated.","nexus_dollars":"",...
]

我有两个数据变量,每个系列的数据都经过过滤。

我的id列与geoData文件的ID相匹配。

我目前正在研究本教程,它看起来像是解决此问题的正确方法,但如果有人可以就上述内容提供一些建议,将不胜感激。

https://www.amcharts.com/demos/grouped-countries-map/

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。