Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -309,7 +309,7 @@ if st.sidebar.button('Run Analysis'):
|
|
| 309 |
fig7.add_trace(go.Scatter(x=[data.index[-1]], y=[center], mode='markers+text', name=f'Cluster Center: {center:.2f}', text=[f'{center:.2f}'], textposition='top center'))
|
| 310 |
fig7.add_shape(type="line",
|
| 311 |
x0=data.index[0], x1=data.index[-1], y0=center, y1=center,
|
| 312 |
-
line
|
| 313 |
fig7.update_layout(
|
| 314 |
title=f'{ticker} with KMeans Clustering (Last {n_days} Days)',
|
| 315 |
xaxis_title='Date',
|
|
|
|
| 309 |
fig7.add_trace(go.Scatter(x=[data.index[-1]], y=[center], mode='markers+text', name=f'Cluster Center: {center:.2f}', text=[f'{center:.2f}'], textposition='top center'))
|
| 310 |
fig7.add_shape(type="line",
|
| 311 |
x0=data.index[0], x1=data.index[-1], y0=center, y1=center,
|
| 312 |
+
line=dict(color='Red', dash="dash"))
|
| 313 |
fig7.update_layout(
|
| 314 |
title=f'{ticker} with KMeans Clustering (Last {n_days} Days)',
|
| 315 |
xaxis_title='Date',
|