samjulien commited on
Commit
9c3d6d2
1 Parent(s): 7681b86

Missed a couple of f strings for 3.11

Browse files
Files changed (1) hide show
  1. finance-app-tutorial/charts.py +2 -2
finance-app-tutorial/charts.py CHANGED
@@ -72,11 +72,11 @@ def update_scatter_chart(state):
72
  )
73
 
74
  # Set axis titles
75
- fig.update_yaxes(title_text=f"{state["symbol"]} Stock Price", secondary_y=False)
76
  fig.update_yaxes(title_text="S&P 500", secondary_y=True)
77
 
78
  # Update layout
79
- fig.update_layout(height=550, title_text=f"{state["symbol"]} Stock vs the S&P 500", title_x = 0.5, title_y = 0.9, legend=dict(
80
  orientation='h',
81
  yanchor='top',
82
  y=-0.2, # Adjust this value as needed
 
72
  )
73
 
74
  # Set axis titles
75
+ fig.update_yaxes(title_text=f"{state['symbol']} Stock Price", secondary_y=False)
76
  fig.update_yaxes(title_text="S&P 500", secondary_y=True)
77
 
78
  # Update layout
79
+ fig.update_layout(height=550, title_text=f"{state['symbol']} Stock vs the S&P 500", title_x = 0.5, title_y = 0.9, legend=dict(
80
  orientation='h',
81
  yanchor='top',
82
  y=-0.2, # Adjust this value as needed