Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -741,7 +741,7 @@ if run_analysis:
|
|
| 741 |
x=[hl_series.index.min(), hl_series.index.max()],
|
| 742 |
y=[overall_half_life_threshold, overall_half_life_threshold],
|
| 743 |
mode='lines',
|
| 744 |
-
line=dict(color='
|
| 745 |
name="Overall Half-Life Threshold"
|
| 746 |
)
|
| 747 |
)
|
|
@@ -859,7 +859,7 @@ if run_analysis:
|
|
| 859 |
yref="paper",
|
| 860 |
text=f"R² = {r_squared:.3f}",
|
| 861 |
showarrow=False,
|
| 862 |
-
font=dict(size=12, color="
|
| 863 |
)
|
| 864 |
|
| 865 |
st.plotly_chart(fig, use_container_width=True)
|
|
@@ -940,7 +940,7 @@ if run_analysis:
|
|
| 940 |
x1=factor_contributions_cumsum.index[-1],
|
| 941 |
y0=0,
|
| 942 |
y1=0,
|
| 943 |
-
line=dict(color="
|
| 944 |
)
|
| 945 |
|
| 946 |
fig.update_layout(
|
|
@@ -949,7 +949,7 @@ if run_analysis:
|
|
| 949 |
yaxis_title="Cumulative Return Contribution",
|
| 950 |
width=2000,
|
| 951 |
height=800,
|
| 952 |
-
legend=dict(x=1.01, y=1, bordercolor="
|
| 953 |
)
|
| 954 |
|
| 955 |
fig.update_xaxes(
|
|
@@ -1018,7 +1018,7 @@ if run_analysis:
|
|
| 1018 |
|
| 1019 |
|
| 1020 |
else:
|
| 1021 |
-
st.info("Set parameters on the sidebar and click 'Run Analysis' to begin.")
|
| 1022 |
|
| 1023 |
hide_streamlit_style = """
|
| 1024 |
<style>
|
|
|
|
| 741 |
x=[hl_series.index.min(), hl_series.index.max()],
|
| 742 |
y=[overall_half_life_threshold, overall_half_life_threshold],
|
| 743 |
mode='lines',
|
| 744 |
+
line=dict(color='white', dash='dash'),
|
| 745 |
name="Overall Half-Life Threshold"
|
| 746 |
)
|
| 747 |
)
|
|
|
|
| 859 |
yref="paper",
|
| 860 |
text=f"R² = {r_squared:.3f}",
|
| 861 |
showarrow=False,
|
| 862 |
+
font=dict(size=12, color="white")
|
| 863 |
)
|
| 864 |
|
| 865 |
st.plotly_chart(fig, use_container_width=True)
|
|
|
|
| 940 |
x1=factor_contributions_cumsum.index[-1],
|
| 941 |
y0=0,
|
| 942 |
y1=0,
|
| 943 |
+
line=dict(color="white", dash="dash", width=1)
|
| 944 |
)
|
| 945 |
|
| 946 |
fig.update_layout(
|
|
|
|
| 949 |
yaxis_title="Cumulative Return Contribution",
|
| 950 |
width=2000,
|
| 951 |
height=800,
|
| 952 |
+
legend=dict(x=1.01, y=1, bordercolor="white", borderwidth=1)
|
| 953 |
)
|
| 954 |
|
| 955 |
fig.update_xaxes(
|
|
|
|
| 1018 |
|
| 1019 |
|
| 1020 |
else:
|
| 1021 |
+
st.info("Set parameters on the sidebar and click 'Run Analysis' to begin. Rolling Regression Analysis takes a few seconds to run.")
|
| 1022 |
|
| 1023 |
hide_streamlit_style = """
|
| 1024 |
<style>
|