Spaces:
Sleeping
Sleeping
Update streamlit_app.py
Browse files- streamlit_app.py +1 -2
streamlit_app.py
CHANGED
|
@@ -205,12 +205,11 @@ with tab_chart:
|
|
| 205 |
margin=dict(l=40, r=20, t=40, b=40), legend_title_text="")
|
| 206 |
st.plotly_chart(fig, use_container_width=True)
|
| 207 |
|
| 208 |
-
# ββ TREND LINES TAB ββββββββββββββββββββββββββββββββββββββββββ
|
| 209 |
# ββ TREND LINES TAB ββββββββββββββββββββββββββββββββββββββββββ
|
| 210 |
with tab_trend:
|
| 211 |
st.caption("Ordinary-least-squares trend for each item (hover for details).")
|
| 212 |
if len(df_line["Year"].unique()) < 2:
|
| 213 |
-
st.info("Need β₯ 2 years of data.")
|
| 214 |
else:
|
| 215 |
fig_tr = go.Figure()
|
| 216 |
for sub in df_line["SubTheme"].unique():
|
|
|
|
| 205 |
margin=dict(l=40, r=20, t=40, b=40), legend_title_text="")
|
| 206 |
st.plotly_chart(fig, use_container_width=True)
|
| 207 |
|
|
|
|
| 208 |
# ββ TREND LINES TAB ββββββββββββββββββββββββββββββββββββββββββ
|
| 209 |
with tab_trend:
|
| 210 |
st.caption("Ordinary-least-squares trend for each item (hover for details).")
|
| 211 |
if len(df_line["Year"].unique()) < 2:
|
| 212 |
+
st.info("Need β₯ 2 years of data. Select either line of correlation chart type to show trend lines")
|
| 213 |
else:
|
| 214 |
fig_tr = go.Figure()
|
| 215 |
for sub in df_line["SubTheme"].unique():
|