Yuxuan-Zhang-Dexter commited on
Commit
229854f
·
1 Parent(s): e430913

update game name for radar chart

Browse files
Files changed (1) hide show
  1. data_visualization.py +3 -9
data_visualization.py CHANGED
@@ -317,19 +317,13 @@ def create_single_radar_chart(df, selected_games=None, highlight_models=None):
317
  if selected_games is None:
318
  selected_games = ['Super Mario Bros', '2048', 'Candy Crash', 'Sokoban']
319
 
320
- # Format game names with line breaks
321
  formatted_games = []
322
  for game in selected_games:
323
  if game == 'Super Mario Bros':
324
- formatted_games.append('Super<br>Mario')
325
- elif game == 'Candy Crash':
326
- formatted_games.append('Candy<br>Crash')
327
- elif game == 'Tetris (complete)':
328
- formatted_games.append('Tetris<br>(complete)')
329
- elif game == 'Tetris (planning only)':
330
- formatted_games.append('Tetris<br>(planning)')
331
  else:
332
- formatted_games.append(game)
333
 
334
  game_cols = [f"{game} Score" for game in selected_games]
335
  categories = formatted_games
 
317
  if selected_games is None:
318
  selected_games = ['Super Mario Bros', '2048', 'Candy Crash', 'Sokoban']
319
 
320
+ # Format game names
321
  formatted_games = []
322
  for game in selected_games:
323
  if game == 'Super Mario Bros':
324
+ formatted_games.append('Super Mario') # Simplified name
 
 
 
 
 
 
325
  else:
326
+ formatted_games.append(game) # Keep other names as is
327
 
328
  game_cols = [f"{game} Score" for game in selected_games]
329
  categories = formatted_games