I am having a list of states and territories of Australia with their corresponding values. Now I want to produce a heat map like this:
I am following the examples with Pyplot from this link but it just has an example for states in the US.
In particular, in this block of code:
data = [ dict(
type='choropleth',
colorscale = scl,
autocolorscale = False,
locations = df['code'],
z = df['total exports'].astype(float),
locationmode = 'USA-states',
text = df['text'],
marker = dict(
line = dict (
color = 'rgb(255,255,255)',
width = 2
) ),
colorbar = dict(
title = "Millions USD")
) ]
layout = dict(
title = '2011 US Agriculture Exports by State<br>(Hover for breakdown)',
geo = dict(
scope='usa',
projection=dict( type='albers usa' ),
showlakes = True,
lakecolor = 'rgb(255, 255, 255)'),
)
How can I modify the code to match my requirement? What should be the correct values for parameters locations, locationmode, scope, projection in case of Australia map? Like how can I find out the code for Australia's states, territories, and cities if I have their names?
Any pointers will be appreciated. Other library recommendations will also be considered.