James McCool commited on
Commit
df1d40d
·
1 Parent(s): 2d41ef7

Update game rotation timeline plot x-axis data and remove y-axis auto-reversal

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