GGNet Choropleth State Map
Thank you for the work you have done in GGNet. My co-worker and I are trying to implement a map of the United States divided into states. We’re looking for a way to implement this, but we can’t seem to find out how the GGNet library draws the countries. Is it possible to do this? Please get back to us when convenient for you.
Hi Isabella,
Happy to hear the library is being used.
If you have a look at GGNet.NaturalEarth, the country record holds polygon shapes. You would need to have the states defined in a similar fashion. Data for it should be publicly available, what scale are you interested in?
In case you have not seen it yet, https://pablofrommars.github.io/examples/choropleth would be the relevant example from the doc.
Keep me posted on your progress.
Hello, how are you doing?
I am one of the co-worker Isabella mentioned. Thank you for the help and we get it to render the States using your polygon shape suggestions. Now we are trying to update the tooltip, we want to update the tooltip lambda, e.g. change it from : [o=>o.x
o=>o.y] to something like [ o=>o.x ] on mousehover. We have setup a callback with on mouseover
We tried to use the map.Geom_Map(..,.tooltip:( )) to update the tooltip lambad but then we realized if we just make that call, we are appending a new map to the Panel(please correct me if I am wrong) Is there a way to modify existing Geom_Map/Scale_Longitude/Scale_Latitude rather than appending a new one
Thank you 👍
Would you be able to share some code? I am not sure I understand the question.