Update app.py
Browse files
app.py
CHANGED
|
@@ -119,8 +119,8 @@ df_backtest = pd.DataFrame(backtest_data)
|
|
| 119 |
def create_fx_chart():
|
| 120 |
"""Tạo biểu đồ tỷ giá từ DataFrame"""
|
| 121 |
fig = go.Figure()
|
| 122 |
-
fig.add_trace(go.Scatter(x=data_fx.index, y=data_fx['Market price'], mode='lines', name='
|
| 123 |
-
fig.add_trace(go.Scatter(x=data_fx.index, y=data_fx['Forecast price'], mode='lines', name='
|
| 124 |
# Layout
|
| 125 |
fig.update_layout(title="Dự Báo Tỷ Giá USD/VND", xaxis_title="Ngày", yaxis_title="Tỷ Giá (VND)", template="plotly_dark", height=400)
|
| 126 |
return fig
|
|
@@ -142,7 +142,7 @@ def create_interest_rate_chart():
|
|
| 142 |
fig = go.Figure()
|
| 143 |
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['Market rate'], mode='lines', name='Lãi suất thị trường', line=dict(color='blue', width=2)))
|
| 144 |
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['Forecast rate'], mode='lines', name='Lãi suất dự báo', line=dict(color='red', width=2)))
|
| 145 |
-
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['STB rate'], mode='lines', name='Lãi suất NHNN', line=dict(color='
|
| 146 |
# Layout
|
| 147 |
fig.update_layout(title="Dự Báo Lãi Suất VN LNH 3M", xaxis_title="Ngày", yaxis_title="Lãi Suất (%)", template="plotly_dark", height=400)
|
| 148 |
return fig
|
|
|
|
| 119 |
def create_fx_chart():
|
| 120 |
"""Tạo biểu đồ tỷ giá từ DataFrame"""
|
| 121 |
fig = go.Figure()
|
| 122 |
+
fig.add_trace(go.Scatter(x=data_fx.index, y=data_fx['Market price'], mode='lines', name='Tỷ giá thị trường', line=dict(color='blue', width=2), marker=dict(size=4)))
|
| 123 |
+
fig.add_trace(go.Scatter(x=data_fx.index, y=data_fx['Forecast price'], mode='lines', name='Tỷ giá dự báo', line=dict(color='red', width=2), marker=dict(size=4)))
|
| 124 |
# Layout
|
| 125 |
fig.update_layout(title="Dự Báo Tỷ Giá USD/VND", xaxis_title="Ngày", yaxis_title="Tỷ Giá (VND)", template="plotly_dark", height=400)
|
| 126 |
return fig
|
|
|
|
| 142 |
fig = go.Figure()
|
| 143 |
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['Market rate'], mode='lines', name='Lãi suất thị trường', line=dict(color='blue', width=2)))
|
| 144 |
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['Forecast rate'], mode='lines', name='Lãi suất dự báo', line=dict(color='red', width=2)))
|
| 145 |
+
fig.add_trace(go.Scatter(x=data_rate.index, y=data_rate['STB rate'], mode='lines', name='Lãi suất NHNN', line=dict(color='green', width=2)))
|
| 146 |
# Layout
|
| 147 |
fig.update_layout(title="Dự Báo Lãi Suất VN LNH 3M", xaxis_title="Ngày", yaxis_title="Lãi Suất (%)", template="plotly_dark", height=400)
|
| 148 |
return fig
|