问题描述
我想拥有一张美国地图,以某种颜色显示某些州,而另一种颜色显示某些州。我相信这些都应该是单独的系列,但是我对如何制作两个系列并展示它们有些迷惑。我还希望图例显示颜色和系列。
我从本教程开始: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 (将#修改为@)