James McCool commited on
Commit
0c29f50
·
1 Parent(s): 57d8770

Modify game rotation timeline visualization parameters and comments

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -695,11 +695,11 @@ with tab5:
695
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
696
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
697
 
698
- fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", resource="PLAYER_NAME", range_x=[0,check_rotation["Finish"].max()], text='minutes')
699
- fig.update_yaxes(autorange="reversed")
700
 
701
- fig.layout.xaxis.type = 'linear'
702
- fig.data[0].y = check_rotation.delta.tolist()
703
  # Create a color map for each unique player
704
  player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
705
  color_map = dict(zip(check_rotation['PLAYER_NAME'].unique(), player_colors))
 
695
  game_rot_stats = check_rotation.reindex(game_rot_cols,axis="columns")
696
  game_rot_stats = game_rot_stats.drop_duplicates(subset='backlog_lookup')
697
 
698
+ fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Delta", range_x=[0,check_rotation["Finish"].max()], text='Task')
699
+ # fig.update_yaxes(autorange="reversed")
700
 
701
+ # fig.layout.xaxis.type = 'linear'
702
+ # fig.data[0].x = check_rotation.delta.tolist()
703
  # Create a color map for each unique player
704
  player_colors = px.colors.qualitative.Plotly[:len(check_rotation['PLAYER_NAME'].unique())]
705
  color_map = dict(zip(check_rotation['PLAYER_NAME'].unique(), player_colors))