Background color of a plotly chart not taken

I would like to plot a plotly chart with streamlit, but the background setting was not taken:


The plot is displayed with grey background:

Is there any way how to fix it? The goal would be the plot as shown in the first picture (“template=“xgridoff””).
Link to the repository:

Solved with foloowing extension:

‘plot_bgcolor’: ‘rgba(0, 0, 0, 0)’,
‘paper_bgcolor’: ‘rgba(0, 0, 0, 0)’,