James McCool commited on
Commit
56dd837
·
1 Parent(s): d760e28

Re-enable y-axis auto-reversal and x-axis linear configuration in game rotation timeline plot

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