JayLacoma commited on
Commit
df35ff9
·
verified ·
1 Parent(s): 7354c52

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -397,11 +397,22 @@ def plot_combined_signals(df, ticker):
397
 
398
  # Update the layout for a clean, focused look
399
  fig.update_layout(
 
400
  template='plotly_dark',
401
  xaxis_title='Date',
402
  yaxis_title='Signal Strength Score',
403
  yaxis=dict(zeroline=True, zerolinewidth=2, zerolinecolor='gray'),
404
- showlegend=False # Not needed for a single trace
 
 
 
 
 
 
 
 
 
 
405
  )
406
 
407
  return fig
 
397
 
398
  # Update the layout for a clean, focused look
399
  fig.update_layout(
400
+ title=f'{ticker}',
401
  template='plotly_dark',
402
  xaxis_title='Date',
403
  yaxis_title='Signal Strength Score',
404
  yaxis=dict(zeroline=True, zerolinewidth=2, zerolinecolor='gray'),
405
+ showlegend=True # Not needed for a single trace
406
+ legend=dict(
407
+ orientation='h', # Horizontal legend
408
+ yanchor='bottom',
409
+ y=1.02, # Just above the plot
410
+ xanchor='right',
411
+ x=1,
412
+ bgcolor="rgba(0,0,0,0.8)",
413
+ bordercolor="white",
414
+ borderwidth=1
415
+ ),
416
  )
417
 
418
  return fig