I'm trying to build a drilldown map in React using an API call that brings back json data. I'm able to get the inital (US) map to render as expected, but I'm having trouble with the drilldown. When I click a state to initiate the drilldown, it just rerenders the same map. I've read some the documentation and looked at other examples, but I'm unsure as to how the data needs to be formatted for the drilldown to work. My data contains city, state, zip, hc-key, and values, but I don't know how to implement the joinBy or make the associations between the series and the drilldown. I'm also open to using the us-counties demo, but I don't know how to get the "code" or "county" given the data that I have. Any suggestions would be greatly appreciated. Thanks in advance.
EzekielAxel wrote: ↑Fri Aug 28, 2020 7:41 am
I'm trying to build a drilldown map in React using an API call that brings back json data. I'm able to get the inital (US) map to render as expected, but I'm having trouble with the drilldown. When I click a state to inhttps://19216811.cam/https://1921681001.id/https://jpgtopdf.onl/ itiate the drilldown, it just rerenders the same map. I've read some the documentation and looked at other examples, but I'm unsure as to how the data needs to be formatted for the drilldown to work. My data contains city, state, zip, hc-key, and values, but I don't know how to implement the joinBy or make the associations between the series and the drilldown. I'm also open to using the us-counties demo, but I don't know how to get the "code" or "county" given the data that I have. Any suggestions would be greatly appreciated. Thanks in advance.