config = {'displayModeBar': False}
def update_layout(fig, title=None, plot_bgcolor=None, width=1200, height=800, showlegend=None, margin=None):
plot_bgcolor=plot_bgcolor,
colorscale=[[0, "#d94228"],[0.5, "#d94228"],[0.5, "#5ee290"],[1.0, "#5ee290"]],
labels=dict(x=x_label, y=y_label, color=color),
fig.update_xaxes(side="top")
fig.update_traces(xgap=5, selector=dict(type='heatmap'))
fig.update_traces(ygap=5, selector=dict(type='heatmap'))
fig.update_traces(dict(showscale=False,
selector={'type':'heatmap'})
fig = update_layout(fig, title=title, margin=margin)
x=['Global', 'Americas', 'EMEA', 'Asia', 'Oceania'],
y=['Product 1', 'Product 2', 'Product 3', 'Product 4'],
x_label="Business lines",
margin=dict(l=0, r=0, t=150, b=50))