-
Notifications
You must be signed in to change notification settings - Fork 4k
Closed
Labels
feature:st.plotly_chartRelated to the `st.plotly_chart` elementRelated to the `st.plotly_chart` elementpriority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expectedtype:regressionThis bug is a regression from previous behaviorThis bug is a regression from previous behavior
Description
Checklist
- I have searched the existing issues for similar issues.
- I added a very descriptive title to this issue.
- I have provided sufficient information below to help reproduce this issue.
Summary
When defining a chart with Plotly Express, you can provide a HEIGHT attribute defining.
Before bugfix #5645 this worked, but after this bugfix now the HEIGHT is ignored.
Reproducible Code Example
import streamlit as st
import pandas as pd
import plotly.express as px
data = pd.DataFrame((100,120,104,102,203,102),columns=["some_col"])
fig = px.line(data, height=100, width=200)
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)
)
st.plotly_chart(fig,config=dict(displayModeBar=False))Steps To Reproduce
No response
Expected Behavior
No response
Current Behavior
No response
Is this a regression?
- Yes, this used to work in a previous version.
Debug info
- Streamlit version: 1.15.
- Python version: 3.10
- Operating System: Win 10
- Browser: Edge
- Virtual environment:
Additional Information
No response
Are you willing to submit a PR?
- Yes, I am willing to submit a PR!
Metadata
Metadata
Assignees
Labels
feature:st.plotly_chartRelated to the `st.plotly_chart` elementRelated to the `st.plotly_chart` elementpriority:P2Medium-high priority - fix within one monthMedium-high priority - fix within one monthstatus:confirmedBug has been confirmed by the Streamlit teamBug has been confirmed by the Streamlit teamtype:bugSomething isn't working as expectedSomething isn't working as expectedtype:regressionThis bug is a regression from previous behaviorThis bug is a regression from previous behavior