Version 1.15. seems to ignore HEIGHT for Plotly charts

Fixing bug #5645 seems to lead to another issue now.
Following call now ignores the HEIGHT parameter for the Plotly chart:

  fig = px.line(data, height=height, width=width)
  fig.update_xaxes(visible=False, fixedrange=True)
  fig.update_yaxes(visible=False, fixedrange=True)
  fig.update_layout(annotations=[], overwrite=True)
  fig.update_layout(
    showlegend=False,
    plot_bgcolor="white",
    margin=dict(t=10,l=10,b=10,r=10)
    )
  fig.update_traces(line_color = line_color)

Hi @dirk ,

Thanks for posting this. Could you also post this in Issues · streamlit/streamlit · GitHub?

Thanks,

William

Hi @willhuang,

have posted as an issue.

Best
Dirk

1 Like