I have tried everything I could find in order to set the background of my choropleth map to transparent but I have been unable to do so.
What I’ve tried and what’s not working:
Code Sample:
def plot_1_show(self, **event_args):
fig = go.Choropleth()
self.plot_1.data = [fig]
self.plot_1.layout = dict(
title = None,
geo_scope='usa',
dragmode=False,
geo_bgcolor='rgba(0, 0, 0, 0)',
paper_bgcolor='rgba(0, 0, 0, 0)',
plot_bgcolor='rgba(0, 0, 0, 0)',
fillcolor='rgba(0, 0, 0, 0)',
bgcolor='rgba(0, 0, 0, 0)',
geo=dict(
showframe=False,
showcoastlines=False,
projection_type='equirectangular',
scope='usa',
projection=go.layout.geo.Projection(type = 'albers usa'),
geo_bgcolor='rgba(0,0,0,0)'
)
)
This is the image that is produced: