KJ commited on
Commit
647cb7b
·
1 Parent(s): 5388204

move legend

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -336,11 +336,11 @@ if not filtered_df.empty:
336
  plot_bgcolor="white",
337
  shapes=shapes,
338
  legend=dict(
339
- orientation="v", # Set legend orientation to vertical
340
  yanchor="top",
341
- y=1,
342
- xanchor="left",
343
- x=1.02, # Position legend to the right of the graph
344
  title="",
345
  traceorder="reversed" # Reverse order to show higher scores first
346
  )
 
336
  plot_bgcolor="white",
337
  shapes=shapes,
338
  legend=dict(
339
+ orientation="h", # Set legend orientation to horizontal
340
  yanchor="top",
341
+ y=-0.3, # Position legend below the graph
342
+ xanchor="center",
343
+ x=0.5,
344
  title="",
345
  traceorder="reversed" # Reverse order to show higher scores first
346
  )