Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1466,7 +1466,6 @@ else:
|
|
| 1466 |
</div>
|
| 1467 |
</div>
|
| 1468 |
""", unsafe_allow_html=True)
|
| 1469 |
-
|
| 1470 |
# ✅ Function definition at correct indentation level
|
| 1471 |
def plot_chart(data, title):
|
| 1472 |
if data.empty:
|
|
@@ -1477,7 +1476,7 @@ else:
|
|
| 1477 |
showarrow=False,
|
| 1478 |
font_size=16
|
| 1479 |
)
|
| 1480 |
-
fig.update_layout(height=350, title=dict(text=title, x=0.5))
|
| 1481 |
return fig
|
| 1482 |
|
| 1483 |
data_sorted = data.sort_values('weekly_avg', ascending=False)
|
|
|
|
| 1466 |
</div>
|
| 1467 |
</div>
|
| 1468 |
""", unsafe_allow_html=True)
|
|
|
|
| 1469 |
# ✅ Function definition at correct indentation level
|
| 1470 |
def plot_chart(data, title):
|
| 1471 |
if data.empty:
|
|
|
|
| 1476 |
showarrow=False,
|
| 1477 |
font_size=16
|
| 1478 |
)
|
| 1479 |
+
fig.update_layout(height=350, title=dict(text=title, x=0.5, xanchor='center'))
|
| 1480 |
return fig
|
| 1481 |
|
| 1482 |
data_sorted = data.sort_values('weekly_avg', ascending=False)
|