I am having Revenue data which I need to map on the German map.
My data contains the postcodes, the corresponding latitude and longitude, as well as the value of revenue corresponding to that postcode, something like this -
data = {'35447': {50.6022608,8.861908900000001,434224.45€}}
I am using plotly
Python library, which helps to create Choropleth/Point Maps. I referred to Pandas Choropleth Maps example, which explains how to use plotly
, but for USA. In the example by setting
locationmode = 'USA-states'
locations = 'AL'# AL for Alabama, AZ for Arizona
we could create Choropleth maps for USA. Similarly, by setting
locationmode = 'USA-states'
lon = -74.25908989999999 # Longitude
lat = 40.4773991 # Latitude
we could create Point Maps for USA.
Question: How can we use library plotly
to create Choropleth/Point maps for Germany? Or is it that plotly
is only implemented for USA. pyGeoDb could have solved this problem, but it cannot be used for Python 3.+
As a side note, which may or may not be helpful - Choropleth maps are not implemented for zip codes and plotly
confirms that.