Spaces:
Sleeping
Sleeping
save
Browse files- src/streamlit_app.py +21 -1
src/streamlit_app.py
CHANGED
|
@@ -79,4 +79,24 @@ title = "Bar Graph",
|
|
| 79 |
color="Large Bags",
|
| 80 |
orientation='h'
|
| 81 |
)
|
| 82 |
-
st.plotly_chart(bar_graph)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
color="Large Bags",
|
| 80 |
orientation='h'
|
| 81 |
)
|
| 82 |
+
st.plotly_chart(bar_graph)
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
st.header("Subplots")
|
| 86 |
+
fig = make_subplots(rows=3, cols=1)
|
| 87 |
+
# First Subplot
|
| 88 |
+
fig.add_trace(go.Scatter(
|
| 89 |
+
x=al_df["Date"],
|
| 90 |
+
y=al_df["Total Bags"],
|
| 91 |
+
), row=1, col=1)
|
| 92 |
+
# Second SubPlot
|
| 93 |
+
fig.add_trace(go.Scatter(
|
| 94 |
+
x=al_df["Date"],
|
| 95 |
+
y=al_df["Small Bags"],
|
| 96 |
+
), row=2, col=1)
|
| 97 |
+
# Third SubPlot
|
| 98 |
+
fig.add_trace(go.Scatter(
|
| 99 |
+
x=al_df["Date"],
|
| 100 |
+
y=al_df["Large Bags"],
|
| 101 |
+
), row=3, col=1)
|
| 102 |
+
st.plotly_chart(fig)
|