aicodingfun commited on
Commit
16c2273
·
verified ·
1 Parent(s): b0989da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -214,7 +214,7 @@ def plot_stock_chart(df: pd.DataFrame, company_name: str) -> plt.Figure:
214
  ax.plot(x, df['Close'], label='Close Price', color='royalblue', linewidth=2)
215
  ax.plot(x, df['SMA_20'], label='20-Day SMA', color='orange', linestyle='--', alpha=0.8)
216
  ax.plot(x, df['SMA_60'], label='60-Day SMA', color='green', linestyle='--', alpha=0.8)
217
- ax.set_title(f'{company_name}', fontsize=16)
218
  ax.set_xlabel('Date', fontsize=12)
219
  ax.set_ylabel('Price', fontsize=12)
220
  ax.legend()
 
214
  ax.plot(x, df['Close'], label='Close Price', color='royalblue', linewidth=2)
215
  ax.plot(x, df['SMA_20'], label='20-Day SMA', color='orange', linestyle='--', alpha=0.8)
216
  ax.plot(x, df['SMA_60'], label='60-Day SMA', color='green', linestyle='--', alpha=0.8)
217
+ ax.set_title(f'{COMPANY_TO_TICKER.get(company_name, company_name)}', fontsize=16)
218
  ax.set_xlabel('Date', fontsize=12)
219
  ax.set_ylabel('Price', fontsize=12)
220
  ax.legend()